Date
1 - 3 of 3
[PATCH 5.10.y-cip 04/39] mmc: renesas_sdhi: clear TAPEN when resetting, too
Lad Prabhakar
From: Wolfram Sang <wsa+renesas@...>
commit 183edc060e6969a3afe83f663b534f6324fb7e3a upstream. We want to clear TAPEN in a software reset, too, to have a completely known state. Especially when we doing the initial reset during boot to clear previous firmware states. Signed-off-by: Wolfram Sang <wsa+renesas@...> Tested-by: Niklas Söderlund <niklas.soderlund+renesas@...> Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...> Link: https://lore.kernel.org/r/20201110162151.37622-2-wsa+renesas@sang-engineering.com Signed-off-by: Ulf Hansson <ulf.hansson@...> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@...> --- drivers/mmc/host/renesas_sdhi_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/renesas_sdhi_core.c b/drivers/mmc/host/renesas_sdhi_core.c index e264ba2bff29..da8c9cf5a942 100644 --- a/drivers/mmc/host/renesas_sdhi_core.c +++ b/drivers/mmc/host/renesas_sdhi_core.c @@ -558,7 +558,7 @@ static void renesas_sdhi_reset(struct tmio_mmc_host *host) struct renesas_sdhi *priv = host_to_priv(host); if (priv->scc_ctl) { - renesas_sdhi_reset_scc(host, priv); + renesas_sdhi_disable_scc(host->mmc); renesas_sdhi_reset_hs400_mode(host, priv); priv->needs_adjust_hs400 = false; -- 2.17.1 |
|
Pavel Machek
Hi!
From: Wolfram Sang <wsa+renesas@...> +++ b/drivers/mmc/host/renesas_sdhi_core.cHaving half of functions receive host, priv pointers and the other half receiving host->mmc pointer is not very nice. Is there some logic behind that / is it possible to somehow fix? Best regards, Pavel -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany |
|
Lad Prabhakar
Hi Pavel,
toggle quoted message
Show quoted text
Thank you for the review. -----Original Message-----That's because renesas_sdhi_disable_scc() needed only host->mmc pointer. Cheers, Prabhakar Best regards, |
|