OSDN Git Service

mmc: renesas_sdhi: do hard reset if possible
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 17 Mar 2021 09:16:22 +0000 (10:16 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Mar 2021 09:42:05 +0000 (11:42 +0200)
commitb4d86f37eacb724690d0d300576b82806bc743d5
tree92d306d72ce15047cca852529b25e0220965dfe6
parent0e5870145840e91fc33cd4eca6e228b009d86705
mmc: renesas_sdhi: do hard reset if possible

All recent SDHI instances can be reset via the reset controller. If one
is found, use it instead of the open coded reset. This is to get a
future-proof sane reset state.

Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20210317091622.31890-4-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/Kconfig
drivers/mmc/host/renesas_sdhi.h
drivers/mmc/host/renesas_sdhi_core.c