svn commit: r327929 - head/sys/dev/mmc
Marius Strobl
marius at FreeBSD.org
Sat Jan 13 17:36:12 UTC 2018
Author: marius
Date: Sat Jan 13 17:36:11 2018
New Revision: 327929
URL: https://svnweb.freebsd.org/changeset/base/327929
Log:
Use the correct revision specifier (EXT_CSD revision rather than
system specification version) for deciding whether the EXT_CSD
register includes the EXT_CSD_GEN_CMD6_TIME field.
Submitted by: Masanobu SAITOH
Modified:
head/sys/dev/mmc/mmc.c
Modified: head/sys/dev/mmc/mmc.c
==============================================================================
--- head/sys/dev/mmc/mmc.c Sat Jan 13 17:25:48 2018 (r327928)
+++ head/sys/dev/mmc/mmc.c Sat Jan 13 17:36:11 2018 (r327929)
@@ -1868,7 +1868,7 @@ mmc_discover_cards(struct mmc_softc *sc)
* units of 10 ms), defaulting to 500 ms.
*/
ivar->cmd6_time = 500 * 1000;
- if (ivar->csd.spec_vers >= 6)
+ if (ivar->raw_ext_csd[EXT_CSD_REV] >= 6)
ivar->cmd6_time = 10 *
ivar->raw_ext_csd[EXT_CSD_GEN_CMD6_TIME];
/* Handle HC erase sector size. */
More information about the svn-src-all
mailing list