mmc: core: Make tuning block patterns static · DeepBlueCoder/linux@04cdbbf · GitHub
Skip to content

Commit 04cdbbf

Browse files
author
Ulf Hansson
committed
mmc: core: Make tuning block patterns static
Since previous patches removed the need for the tuning block patterns to be exported, let's move them close to the mmc_send_tuning() API. Those are now intended to be used only by the mmc core. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
1 parent 6c2c650 commit 04cdbbf

3 files changed

Lines changed: 30 additions & 37 deletions

File tree

drivers/mmc/core/mmc.c

Lines changed: 0 additions & 32 deletions

drivers/mmc/core/mmc_ops.c

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,36 @@
2323

2424
#define MMC_OPS_TIMEOUT_MS (10 * 60 * 1000) /* 10 minute timeout */
2525

26+
static const u8 tuning_blk_pattern_4bit[] = {
27+
0xff, 0x0f, 0xff, 0x00, 0xff, 0xcc, 0xc3, 0xcc,
28+
0xc3, 0x3c, 0xcc, 0xff, 0xfe, 0xff, 0xfe, 0xef,
29+
0xff, 0xdf, 0xff, 0xdd, 0xff, 0xfb, 0xff, 0xfb,
30+
0xbf, 0xff, 0x7f, 0xff, 0x77, 0xf7, 0xbd, 0xef,
31+
0xff, 0xf0, 0xff, 0xf0, 0x0f, 0xfc, 0xcc, 0x3c,
32+
0xcc, 0x33, 0xcc, 0xcf, 0xff, 0xef, 0xff, 0xee,
33+
0xff, 0xfd, 0xff, 0xfd, 0xdf, 0xff, 0xbf, 0xff,
34+
0xbb, 0xff, 0xf7, 0xff, 0xf7, 0x7f, 0x7b, 0xde,
35+
};
36+
37+
static const u8 tuning_blk_pattern_8bit[] = {
38+
0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0x00,
39+
0xff, 0xff, 0xcc, 0xcc, 0xcc, 0x33, 0xcc, 0xcc,
40+
0xcc, 0x33, 0x33, 0xcc, 0xcc, 0xcc, 0xff, 0xff,
41+
0xff, 0xee, 0xff, 0xff, 0xff, 0xee, 0xee, 0xff,
42+
0xff, 0xff, 0xdd, 0xff, 0xff, 0xff, 0xdd, 0xdd,
43+
0xff, 0xff, 0xff, 0xbb, 0xff, 0xff, 0xff, 0xbb,
44+
0xbb, 0xff, 0xff, 0xff, 0x77, 0xff, 0xff, 0xff,
45+
0x77, 0x77, 0xff, 0x77, 0xbb, 0xdd, 0xee, 0xff,
46+
0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00,
47+
0x00, 0xff, 0xff, 0xcc, 0xcc, 0xcc, 0x33, 0xcc,
48+
0xcc, 0xcc, 0x33, 0x33, 0xcc, 0xcc, 0xcc, 0xff,
49+
0xff, 0xff, 0xee, 0xff, 0xff, 0xff, 0xee, 0xee,
50+
0xff, 0xff, 0xff, 0xdd, 0xff, 0xff, 0xff, 0xdd,
51+
0xdd, 0xff, 0xff, 0xff, 0xbb, 0xff, 0xff, 0xff,
52+
0xbb, 0xbb, 0xff, 0xff, 0xff, 0x77, 0xff, 0xff,
53+
0xff, 0x77, 0x77, 0xff, 0x77, 0xbb, 0xdd, 0xee,
54+
};
55+
2656
static inline int __mmc_send_status(struct mmc_card *card, u32 *status,
2757
bool ignore_crc)
2858
{

include/linux/mmc/mmc.h

Lines changed: 0 additions & 5 deletions

0 commit comments

Comments
 (0)