Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2018 17:36:11 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327929 - head/sys/dev/mmc
Message-ID:  <201801131736.w0DHaBtm059598@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801131736.w0DHaBtm059598>