Skip to content

Commit 1194be8

Browse files
Haibo Chenstorulf
authored andcommitted
mmc: sdhci-esdhc-imx: fix the mask for tuning start point
According the RM, the bit[6~0] of register ESDHC_TUNING_CTRL is TUNING_START_TAP, bit[7] of this register is to disable the command CRC check for standard tuning. So fix it here. Fixes: d87fc96 ("mmc: sdhci-esdhc-imx: support setting tuning start point") Signed-off-by: Haibo Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent f614046 commit 1194be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-esdhc-imx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
#define ESDHC_STD_TUNING_EN (1 << 24)
9191
/* NOTE: the minimum valid tuning start tap for mx6sl is 1 */
9292
#define ESDHC_TUNING_START_TAP_DEFAULT 0x1
93-
#define ESDHC_TUNING_START_TAP_MASK 0xff
93+
#define ESDHC_TUNING_START_TAP_MASK 0x7f
9494
#define ESDHC_TUNING_STEP_MASK 0x00070000
9595
#define ESDHC_TUNING_STEP_SHIFT 16
9696

0 commit comments

Comments
 (0)