
14 Oct
2021
14 Oct
'21
4:51 p.m.
Reviewed-by: Marek Behún marek.behun@nic.cz Tested-by: Marek Behún marek.behun@nic.cz
This fixes a bug introduced in commit 3f4e52fc9d81 https://source.denx.de/u-boot/u-boot/-/commit/3f4e52fc9d81e95ee90f6be7b05ca6... and it is incorrect. It caused the mmc initialization to take 4 seconds (previously it was <0.1s).
The code in Linux also uses &&, and the comment says: If the host doesn't support HW polling via the ->card_busy() ops and when it's not allowed to poll by using CMD13, then we need to rely on waiting the stated timeout to be sufficient.
See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/driv...
Peng, could we get this merged ASAP? :)
Marek