]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: renesas_sdhi: fix regression with hard reset on old SDHIs
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 26 Aug 2021 08:21:07 +0000 (10:21 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 6 Sep 2021 16:10:49 +0000 (18:10 +0200)
commita73de7d5f8eb4542fa931759a8f0917b0229a972
tree376d42b1086e393e0114813205b3f5128395c826
parent90251a8900dc374f1f375828ccf8e31cd0029fe9
mmc: renesas_sdhi: fix regression with hard reset on old SDHIs

Old SDHI instances have a default value for the reset register which
keeps it in reset state by default. So, when applying a hard reset we
need to manually leave the soft reset state as well. Later SDHI
instances have a different default value, the one we write manually now.

Fixes: f25e44fc867a ("mmc: renesas_sdhi: do hard reset if possible")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210826082107.47299-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c