Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Nov 2020 16:40:39 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368061 - head/sys/dev/sdhci
Message-ID:  <202011261640.0AQGedox076020@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Thu Nov 26 16:40:39 2020
New Revision: 368061
URL: https://svnweb.freebsd.org/changeset/base/368061

Log:
  sdhci: mmccam: Update vccq in the driver ios
  
  Otherwise we always report that the card is running at 1.2V.

Modified:
  head/sys/dev/sdhci/sdhci.c

Modified: head/sys/dev/sdhci/sdhci.c
==============================================================================
--- head/sys/dev/sdhci/sdhci.c	Thu Nov 26 16:40:20 2020	(r368060)
+++ head/sys/dev/sdhci/sdhci.c	Thu Nov 26 16:40:39 2020	(r368061)
@@ -2683,6 +2683,11 @@ sdhci_cam_settran_settings(struct sdhci_slot *slot, un
 		if (sdhci_debug > 1)
 			slot_printf(slot, "Bus mode => %d\n", ios->bus_mode);
 	}
+	if (cts->ios_valid & MMC_VCCQ) {
+		ios->vccq = new_ios->vccq;
+		if (sdhci_debug > 1)
+			slot_printf(slot, "VCCQ => %d\n", ios->vccq);
+	}
 
 	/* XXX Provide a way to call a chip-specific IOS update, required for TI */
 	return (sdhci_cam_update_ios(slot));



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