mmc: sdhci-of-dwcmshc: add reset call back for rockchip Socs
authorYifeng Zhao <yifeng.zhao@rock-chips.com>
Wed, 4 May 2022 21:32:39 +0000 (23:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:30:08 +0000 (10:30 +0200)
commitc038e4094ba2237788e4001c4dd992638774e86e
treeb5d0d3236e6716555afc63be8a5fa2238d172a48
parentd6a74ee2a7b2a361b966bcdaa693e2b71d87899a
mmc: sdhci-of-dwcmshc: add reset call back for rockchip Socs

[ Upstream commit 70f832206fe72e9998b46363e8e59e89b0b757bc ]

The reset function build in the SDHCI will not reset the logic
circuit related to the tuning function, which may cause data
reading errors. Resetting the complete SDHCI controller through
the reset controller fixes the issue.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
[rebase, use optional variant of reset getter]
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20220504213251.264819-10-sebastian.reichel@collabora.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sdhci-of-dwcmshc.c