Skip to content

Commit fb0a777

Browse files
author
Daz Jones
committedOct 27, 2013
Merge branch 'master' into jb-mr2
2 parents c74366b + 21718ff commit fb0a777

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed
 

‎arch/arm/configs/u8815_defconfig

+1
Original file line numberDiff line numberDiff line change
@@ -2706,6 +2706,7 @@ CONFIG_MMC_UNSAFE_RESUME=y
27062706
CONFIG_MMC_CLKGATE=y
27072707
# CONFIG_MMC_EMBEDDED_SDIO is not set
27082708
CONFIG_MMC_PARANOID_SD_INIT=y
2709+
CONFIG_HUAWEI_NO_HYNIX_HACK=y
27092710

27102711
#
27112712
# MMC/SD/SDIO Card Drivers

‎arch/arm/configs/u8833_defconfig

+1
Original file line numberDiff line numberDiff line change
@@ -2712,6 +2712,7 @@ CONFIG_MMC_UNSAFE_RESUME=y
27122712
CONFIG_MMC_CLKGATE=y
27132713
# CONFIG_MMC_EMBEDDED_SDIO is not set
27142714
CONFIG_MMC_PARANOID_SD_INIT=y
2715+
# CONFIG_HUAWEI_NO_HYNIX_HACK is not set
27152716

27162717
#
27172718
# MMC/SD/SDIO Card Drivers

‎drivers/mmc/core/Kconfig

+3
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ config MMC_PARANOID_SD_INIT
4444
about re-trying SD init requests. This can be a useful
4545
work-around for buggy controllers and hardware. Enable
4646
if you are experiencing issues with SD detection.
47+
48+
config HUAWEI_NO_HYNIX_HACK
49+
bool "Disable setting clock to 26MHz (hynix)."

‎drivers/mmc/core/mmc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
11111111
max_dtr = card->csd.max_dtr;
11121112
}
11131113

1114-
#ifdef CONFIG_HUAWEI_KERNEL
1114+
#ifndef CONFIG_HUAWEI_NO_HYNIX_HACK
11151115
/* Set clk to 26MHz to fix hynix emmc CMD6 timeout issue. */
11161116
mmc_set_clock(host, MMC_HIGH_26_MAX_DTR);
11171117
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.