Message ID | 20170131205651.GG6017@bigcity.dyn.berto.se (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index 2064fa1a5bf11f9a..1483902a1e323adb 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -824,6 +824,9 @@ static int tmio_mmc_execute_tuning(struct mmc_host *mmc, u32 opcode) bitmap_zero(host->taps, host->tap_num * 2); + /* Reset hardware before tuning */ + tmio_mmc_hw_reset(mmc); + /* Issue CMD19 twice for each tap */ for (i = 0; i < 2 * host->tap_num; i++) { if (host->prepare_tuning)