mmc: renesas_sdhi: only reset SCC when its pointer is populated
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 10 Nov 2020 14:20:55 +0000 (15:20 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Nov 2020 11:46:50 +0000 (12:46 +0100)
commit45bffc371fefd8537804b001080a47c6b69d5efa
tree9c429b00fcdbe648c335eadbba3b9eb84b3dc40f
parent1f71b0bf4ef8992ae7749f917b6593fd902ec476
mmc: renesas_sdhi: only reset SCC when its pointer is populated

Only re-initialize SCC and tuning when an SCC was found during probe().
This is currently a noop because all R-Car Gen2+ are considered to have
an SCC. But this will change in a later patch, so we need this
preparation.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20201110142058.36393-2-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c