From: Shawn Lin Date: Mon, 9 May 2016 03:36:57 +0000 (+0800) Subject: HACK: mmc: core: disable sending status when switching to hs from hs200 X-Git-Tag: firefly_0821_release~2655 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4583509b4583d12e8e626a33e67e3849f4156499;p=firefly-linux-kernel-4.4.55.git HACK: mmc: core: disable sending status when switching to hs from hs200 To slove the issue found on evb2 for hs400 [ 1.526008] sdhci: Secure Digital Host Controller Interface driver [ 1.526558] sdhci: Copyright(c) Pierre Ossman [ 1.527899] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.529967] sdhci-arasan fe330000.sdhci: No vmmc regulator found [ 1.530501] sdhci-arasan fe330000.sdhci: No vqmmc regulator found [ 1.568710] mmc0: SDHCI controller on fe330000.sdhci [fe330000.sdhci] using ADMA [ 1.627552] mmc0: switch to high-speed from hs200 failed, err:-84 [ 1.628108] mmc0: error -84 whilst initialising MMC card [PATCH reviewing: https://patchwork.kernel.org/patch/9010851/] Signed-off-by: Shawn Lin Change-Id: I7641a3c095bb893a56f18fa3faa88ca179f3dae3 --- diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 94bde1d5dae8..0f13c82e015c 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1094,7 +1094,7 @@ static int mmc_select_hs400(struct mmc_card *card) err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_HS_TIMING, val, card->ext_csd.generic_cmd6_time, - true, send_status, true); + true, false, true); if (err) { pr_err("%s: switch to high-speed from hs200 failed, err:%d\n", mmc_hostname(host), err); @@ -1222,7 +1222,7 @@ int mmc_hs400_to_hs200(struct mmc_card *card) val = EXT_CSD_TIMING_HS; err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_HS_TIMING, val, card->ext_csd.generic_cmd6_time, - true, send_status, true); + true, false, true); if (err) goto out_err; @@ -1334,7 +1334,7 @@ static int mmc_select_hs200(struct mmc_card *card) err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_HS_TIMING, val, card->ext_csd.generic_cmd6_time, - true, send_status, true); + true, false, true); if (err) goto err; old_timing = host->ios.timing;