]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mmc: tmio: Always check for errors after receiving an IRQ
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 14 Oct 2023 21:56:03 +0000 (23:56 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 27 Oct 2023 09:21:28 +0000 (11:21 +0200)
commit631dbe0c084f7459c4caa398470d4004152c2333
treec4dbe91e5c36382cc5ee930f2c7c9c899bd48403
parent0fb6cd6aa4be28d84970ad81fe1aa5acf32af306
mmc: tmio: Always check for errors after receiving an IRQ

Unconditionally check for errors even after successful reception
of IRQ flag, since the hardware may set both an IRQ completion
flag and an error flag at the same time.

This mode of failure happens in case of an error during transfer,
in which case the hardware may set the expected IRQ completion
flag as well as error flags. The later is currently not checked
by the driver and such an error is not detected. Improve the
error detection.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Thuan Nguyen Hong <thuan.nguyen-hong@banvien.com.vn>
drivers/mmc/tmio-common.c