Skip to content

Commit

Permalink
Merge branch 'master' into jb-mr2
Browse files Browse the repository at this point in the history
  • Loading branch information
Daz Jones committed Oct 27, 2013
2 parents c74366b + 21718ff commit fb0a777
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm/configs/u8815_defconfig
Expand Up @@ -2706,6 +2706,7 @@ CONFIG_MMC_UNSAFE_RESUME=y
CONFIG_MMC_CLKGATE=y
# CONFIG_MMC_EMBEDDED_SDIO is not set
CONFIG_MMC_PARANOID_SD_INIT=y
CONFIG_HUAWEI_NO_HYNIX_HACK=y

#
# MMC/SD/SDIO Card Drivers
Expand Down
1 change: 1 addition & 0 deletions arch/arm/configs/u8833_defconfig
Expand Up @@ -2712,6 +2712,7 @@ CONFIG_MMC_UNSAFE_RESUME=y
CONFIG_MMC_CLKGATE=y
# CONFIG_MMC_EMBEDDED_SDIO is not set
CONFIG_MMC_PARANOID_SD_INIT=y
# CONFIG_HUAWEI_NO_HYNIX_HACK is not set

#
# MMC/SD/SDIO Card Drivers
Expand Down
3 changes: 3 additions & 0 deletions drivers/mmc/core/Kconfig
Expand Up @@ -44,3 +44,6 @@ config MMC_PARANOID_SD_INIT
about re-trying SD init requests. This can be a useful
work-around for buggy controllers and hardware. Enable
if you are experiencing issues with SD detection.

config HUAWEI_NO_HYNIX_HACK
bool "Disable setting clock to 26MHz (hynix)."
2 changes: 1 addition & 1 deletion drivers/mmc/core/mmc.c
Expand Up @@ -1111,7 +1111,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
max_dtr = card->csd.max_dtr;
}

#ifdef CONFIG_HUAWEI_KERNEL
#ifndef CONFIG_HUAWEI_NO_HYNIX_HACK
/* Set clk to 26MHz to fix hynix emmc CMD6 timeout issue. */
mmc_set_clock(host, MMC_HIGH_26_MAX_DTR);
#endif
Expand Down

0 comments on commit fb0a777

Please sign in to comment.