From 403e20ab89104f5dbbc5cf61f3d34f425beae594 Mon Sep 17 00:00:00 2001 From: marius Date: Thu, 15 Mar 2018 23:02:52 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.freebsd.org/base/stable/10@331039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c index 9a7075521..b50fdada8 100644 --- a/sys/dev/mmc/mmc.c +++ b/sys/dev/mmc/mmc.c @@ -1870,7 +1870,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. */ -- 2.45.0