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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Dec 2018 12:40:15 +0000 (13:40 +0100)
commit68f3ea1d87eb5e2096032e7d593d018f37f0778a
tree53beb1f63d609e1e0ed630df8baf7aed1bdb5630
parentbaecfd9178450a08b22622ae31d587d6adb98c4a
mmc: core: Reset HPI enabled state during re-init and in case of errors

commit a0741ba40a009f97c019ae7541dc61c1fdf41efb upstream.

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: eb0d8f135b67 ("mmc: core: support HPI send command")
Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/mmc.c