]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: tmio: improve bringing HW to a sane state with MMC_POWER_OFF
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 25 Nov 2020 20:49:53 +0000 (21:49 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 4 Dec 2020 11:33:59 +0000 (12:33 +0100)
commit8b6cffe5d1b7a04f74977c0eb4dbb348b5b780c6
treeca5dad0d471754b071a2ea2be548b0ed946a7d56
parent2ff0677f65939dfab032310bb7caba35d289a641
mmc: tmio: improve bringing HW to a sane state with MMC_POWER_OFF

Further testing of error cases revealed that downgrade is not enough, so
we need to reset the SCC which is done by calling the custom reset
function. This reset function can distinguish between the various SDHI
variants, so protecting the call with MIN_RCAR2 is enough here.

Fixes: d9e608955376 ("mmc: tmio: bring tuning HW to a sane state with MMC_POWER_OFF")
Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20201125204953.3344-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_core.c