OSDN Git Service

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)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Jul 2022 10:25:32 +0000 (12:25 +0200)
commit70f832206fe72e9998b46363e8e59e89b0b757bc
treefbe501f12004f5fbb0b2df2f499627e53b5b1162
parent32346491ddf24599decca06190ebca03ff9de7f8
mmc: sdhci-of-dwcmshc: add reset call back for rockchip Socs

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>
drivers/mmc/host/sdhci-of-dwcmshc.c