[PATCH] mmc: Do not send status of send_status is false

Tom Rini trini at konsulko.com
Wed Aug 10 23:50:20 CEST 2022


On Fri, Jul 15, 2022 at 01:58:24AM +0200, Marek Vasut wrote:

> Commit 44645f87de5 ("mmc: Fix mmc_switch excessive timeout") introduced
> a side effect where CMD13 SEND_STATUS is issued in case mmc_wait_dat0()
> does not return -ENOSYS and $send_status is not set. This happens on all
> hardware which does implement .mmc_wait_dat0 callback, e.g. i.MX8M .
> 
> This leads to lengthy timeout before booting OS in case of eMMC in one
> of the HS200/HS400 modes, since the card cannot respond to CMD13 while
> downgrading from HS200/HS400 to regular HS mode.
> 
> Fix this by adding the missing conditional.
> 
> Fixes: 44645f87de5 ("mmc: Fix mmc_switch excessive timeout")
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Jaehoon Chung <jh80.chung at samsung.com>
> Cc: Kirill Kapranov <kirill.kapranov at compulab.co.il>
> Cc: Marek Behún <marek.behun at nic.cz>
> Cc: Pantelis Antoniou <panto at antoniou-consulting.com>
> Cc: Ye Li <ye.li at nxp.com>
> Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220810/8379620c/attachment.sig>


More information about the U-Boot mailing list