mmc: block: ioctl: do write error check for spi
authorChristian Loehle <CLoehle@hyperstone.com>
Thu, 25 May 2023 09:56:04 +0000 (09:56 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 12 Jun 2023 13:20:08 +0000 (15:20 +0200)
commit568898cbc8b570311b3b94a3202b8233f4168144
treeebe8b31b3bea95b7ceb6465fb6b2f8418b921da3
parent20dbd07ef0a8bc29eb03d6a95258ac8934cbe52d
mmc: block: ioctl: do write error check for spi

SPI doesn't have the usual PROG path we can check for error bits
after moving back to TRAN. Instead it holds the line LOW until
completion. We can then check if the card shows any errors or
is in IDLE state, indicating the line is no longer LOW because
the card was reset.

Signed-off-by: Christian Loehle <cloehle@hyperstone.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/55920f880c9742f486f64aa44e25508e@hyperstone.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c