]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: tmio: fix reset operation
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 26 Nov 2018 17:02:46 +0000 (18:02 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit450cce64bf5edd5a656b497012196c7e13290a51
treecbe8e8973b14ac81c05d78d81545131b1cf33a8f
parent591c0ec9d097069d4a4f3370815fc5f3eac7453a
mmc: tmio: fix reset operation

SD / MMC did not operate properly when suspend transition failed.
Because the SCC was not reset at resume, issue of the command failed.
Call the host specific reset function and reset the hardware in order to
add reset of SCC. This change also fixes tuning on some stubborn cards
on Gen2.

Based on work from Masaharu Hayakawa.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_core.c