]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mmc: ignore CRC errors from CMD13 (status) when changing rates
authorAustin Shafer <ashafer@badland.io>
Thu, 3 Jun 2021 01:46:23 +0000 (19:46 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 3 Jun 2021 01:46:23 +0000 (19:46 -0600)
commite7dc08415a324d1000cd067fbc12b1ec79e0b2ac
tree3df3199c246e9dd6a30dc18681ca4efcc0672038
parent9a0f82285322a338548d13fcda07e1d574301190
mmc: ignore CRC errors from CMD13 (status) when changing rates

Update mmc_switch_status to ignore a few CRC errrors when asking for the
card status after setting the new rate with CMD6. Since the card may
take a little while to make the switch, it's possible we'll get a
communications error if we sent the command at the wrong time. Several
low end laptops needs this workaround as they have a window that seems
longer than other systems. This is known to fix at least the Acer Aspire
A114-32-P7E5.

Reviewed by: imp@, manu@
Differential Revision: https://reviews.freebsd.org/D24740
sys/dev/mmc/mmc_subr.c