]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Nov 2023 08:35:21 +0000 (09:35 +0100)
commit719c01f28130261ca9fdc274152c3a6c8ae22dc5
treed1ebec59630636657a6529e8d4abc1b40daa7546
parent651e66d20b597d5d3bfbffb133a54e08e7174507
mmc: block: ioctl: do write error check for spi

[ Upstream commit 568898cbc8b570311b3b94a3202b8233f4168144 ]

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>
Stable-dep-of: f19c5a73e6f7 ("mmc: core: Fix error propagation for some ioctl commands")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/core/block.c