]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: core: Issue HPI in case the BKOPS timed out
authorBean Huo <beanhuo@micron.com>
Tue, 17 Aug 2021 22:42:07 +0000 (00:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Aug 2021 14:59:39 +0000 (16:59 +0200)
commitfe72d08a961f9e09a7b04c15904a98f7c8cd537e
treee0601ea4a4478bf0520869688f497ca5f502f0e5
parentf6f607070aa6f0c730c5ca38e888c88f34bea7d6
mmc: core: Issue HPI in case the BKOPS timed out

If the BKOPS timed out, the card is probably still busy in the
R1_STATE_PRG. Rather than continue as nothing has happened and hitting and
error for the next command being sent, let's try to abort the running BKOPS
by sending a HPI command to get back into R1_STATE_TRAN.

Signed-off-by: Bean Huo <beanhuo@micron.com>
Link: https://lore.kernel.org/r/20210817224208.153652-2-huobean@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc_ops.c