diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2021-03-17 10:16:22 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-03-30 11:42:05 +0200 |
commit | b4d86f37eacb724690d0d300576b82806bc743d5 (patch) | |
tree | 92d306d72ce15047cca852529b25e0220965dfe6 /drivers/mmc/host/renesas_sdhi.h | |
parent | mmc: renesas_sdhi: break SCC reset into own function (diff) | |
download | linux-b4d86f37eacb724690d0d300576b82806bc743d5.tar.xz linux-b4d86f37eacb724690d0d300576b82806bc743d5.zip |
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>
Diffstat (limited to 'drivers/mmc/host/renesas_sdhi.h')
-rw-r--r-- | drivers/mmc/host/renesas_sdhi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/renesas_sdhi.h b/drivers/mmc/host/renesas_sdhi.h index cb962c7883dc..53eded81a53e 100644 --- a/drivers/mmc/host/renesas_sdhi.h +++ b/drivers/mmc/host/renesas_sdhi.h @@ -70,6 +70,8 @@ struct renesas_sdhi { DECLARE_BITMAP(smpcmp, BITS_PER_LONG); unsigned int tap_num; unsigned int tap_set; + + struct reset_control *rstc; }; #define host_to_priv(host) \ |