]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Reset HPI enabled state during re-init and in case of errors
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Dec 2018 16:52:36 +0000 (17:52 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:56:54 +0000 (08:56 +0100)
commita0e898ecf837306d714430e3982d8ea8cd6d3016
treebc43bd662995610cc77edad7a4b73903c2ac89b3
parent29febb8490146251c1c6ba7031a2250b379aa826
mmc: core: Reset HPI enabled state during re-init and in case of errors

During a re-initialization of the eMMC card, we may fail to re-enable HPI.
In these cases, that isn't properly reflected in the card->ext_csd.hpi_en
bit, as it keeps being set. This may cause following attempts to use HPI,
even if's not enabled. Let's fix this!

Fixes: 6accdd0a65f1 ("mmc: core: support HPI send command")
Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c