svn commit: r349584 - head/sys/dev/mmc/host

Emmanuel Vadot manu at FreeBSD.org
Mon Jul 1 21:50:55 UTC 2019


Author: manu
Date: Mon Jul  1 21:50:53 2019
New Revision: 349584
URL: https://svnweb.freebsd.org/changeset/base/349584

Log:
  Since r349571 we need all the accessor to be present for set or get
  otherwise we panic.
  dwmmc don't handle VCCQ (voltage for the IO line of the SD/eMMC) or
  TIMING.
  Add the needed accessor in the {read,write}_ivar functions.
  
  Reviewed by:	imp (previous version)

Modified:
  head/sys/dev/mmc/host/dwmmc.c

Modified: head/sys/dev/mmc/host/dwmmc.c
==============================================================================
--- head/sys/dev/mmc/host/dwmmc.c	Mon Jul  1 21:06:10 2019	(r349583)
+++ head/sys/dev/mmc/host/dwmmc.c	Mon Jul  1 21:50:53 2019	(r349584)
@@ -1096,6 +1096,10 @@ dwmmc_read_ivar(device_t bus, device_t child, int whic
 		break;
 	case MMCBR_IVAR_MAX_DATA:
 		*(int *)result = sc->desc_count;
+		break;
+	case MMCBR_IVAR_TIMING:
+		*(int *)result = sc->host.ios.timing;
+		break;
 	}
 	return (0);
 }
@@ -1133,6 +1137,14 @@ dwmmc_write_ivar(device_t bus, device_t child, int whi
 		break;
 	case MMCBR_IVAR_VDD:
 		sc->host.ios.vdd = value;
+		break;
+	case MMCBR_IVAR_TIMING:
+		sc->host.ios.timing = value;
+		break;
+
+	/* Not handled */
+	case MMCBR_IVAR_VCCQ:
+		return (0);
 		break;
 	/* These are read-only */
 	case MMCBR_IVAR_CAPS:


More information about the svn-src-head mailing list