svn commit: r331038 - stable/11/sys/dev/mmc
Marius Strobl
marius at FreeBSD.org
Thu Mar 15 23:02:50 UTC 2018
Author: marius
Date: Thu Mar 15 23:02:49 2018
New Revision: 331038
URL: https://svnweb.freebsd.org/changeset/base/331038
Log:
MFC: r327929
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:
stable/11/sys/dev/mmc/mmc.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/mmc/mmc.c
==============================================================================
--- stable/11/sys/dev/mmc/mmc.c Thu Mar 15 23:01:04 2018 (r331037)
+++ stable/11/sys/dev/mmc/mmc.c Thu Mar 15 23:02:49 2018 (r331038)
@@ -1871,7 +1871,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-stable-11
mailing list