]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: renesas-sdhi: Stop transmission in case tuning block transfer fails
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 20 Feb 2024 08:38:45 +0000 (09:38 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 15 Apr 2024 06:19:12 +0000 (15:19 +0900)
commit12859c2219a61bf4ce8b33de267d2b0e3e11ef37
treef7435f6be22e8d0fe9452bd6ade6293ecc89797f
parent60649a8d6cc975a36d06aad14ed55079e75bc4fa
mmc: renesas-sdhi: Stop transmission in case tuning block transfer fails

The current code uses the state of tuning block received by SCC to
determine whether or not to send transmission stop command. This is
not correct. Use the state of tuning block transfer to determine
whether or not to send transmission stop command instead, because
the transmission stop command has to be sent in case the tuning
block transfer failed.

This requires two changes, separate variable to store and check the
state of tuning block received by SCC, and another separate variable
to store and check return value from transmission stop command.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Tested-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/renesas-sdhi.c