Skip to content

Commit 9253d71

Browse files
Veerabhadrarao Badigantistorulf
authored andcommitted
mmc: sdhci-msm: Clear tuning done flag while hs400 tuning
Clear tuning_done flag while executing tuning to ensure vendor specific HS400 settings are applied properly when the controller is re-initialized in HS400 mode. Without this, re-initialization of the qcom SDHC in HS400 mode fails while resuming the driver from runtime-suspend or system-suspend. Fixes: ff06ce4 ("mmc: sdhci-msm: Add HS400 platform support") Cc: [email protected] Signed-off-by: Veerabhadrarao Badiganti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 254e175 commit 9253d71

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/mmc/host/sdhci-msm.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,12 @@ static int sdhci_msm_execute_tuning(struct mmc_host *mmc, u32 opcode)
11731173
/* Clock-Data-Recovery used to dynamically adjust RX sampling point */
11741174
msm_host->use_cdr = true;
11751175

1176+
/*
1177+
* Clear tuning_done flag before tuning to ensure proper
1178+
* HS400 settings.
1179+
*/
1180+
msm_host->tuning_done = 0;
1181+
11761182
/*
11771183
* For HS400 tuning in HS200 timing requires:
11781184
* - select MCLK/2 in VENDOR_SPEC

0 commit comments

Comments
 (0)