]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Do regular power cycle when lacking eMMC HW reset support
authorGwendal Grignou <gwendal@chromium.org>
Fri, 1 Apr 2016 23:04:22 +0000 (16:04 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:24 +0000 (10:33 +0200)
commit2b0fecc3d3a2b81471f7059192ed3da61a9ad27a
treeae5fce16a3076b11bd1803d67f1c61f48192dd1d
parentddfec60e43c7eb3028875ccdfcd220cb9b1ae123
mmc: core: Do regular power cycle when lacking eMMC HW reset support

The eMMC HW reset may be implemented either via the host ops ->hw_reset()
callback or through DT and the eMMC pwrseq. Additionally some eMMC cards
don't support HW reset.

To allow a reset to be done for the different combinations of mmc hosts
and eMMC/MMC cards, let's implement a fallback via trying a regular power
cycle. This improves the mmc block layer retry mechanism of failing I/O
requests.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
[Ulf: Rewrote changelog]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/core/mmc.c