svn commit: r363426 - head/sys/arm/allwinner

Emmanuel Vadot manu at FreeBSD.org
Wed Jul 22 18:33:37 UTC 2020


Author: manu
Date: Wed Jul 22 18:33:36 2020
New Revision: 363426
URL: https://svnweb.freebsd.org/changeset/base/363426

Log:
  aw_mmc: Start a mmccam discovery when the CD handler is called.
  
  Submitted by:	kibab

Modified:
  head/sys/arm/allwinner/aw_mmc.c

Modified: head/sys/arm/allwinner/aw_mmc.c
==============================================================================
--- head/sys/arm/allwinner/aw_mmc.c	Wed Jul 22 18:30:17 2020	(r363425)
+++ head/sys/arm/allwinner/aw_mmc.c	Wed Jul 22 18:33:36 2020	(r363426)
@@ -371,6 +371,9 @@ aw_mmc_helper_cd_handler(device_t dev, bool present)
 	struct aw_mmc_softc *sc;
 
 	sc = device_get_softc(dev);
+#ifdef MMCCAM
+	mmccam_start_discovery(sc->sim);
+#else
 	AW_MMC_LOCK(sc);
 	if (present) {
 		if (sc->child == NULL) {
@@ -397,6 +400,7 @@ aw_mmc_helper_cd_handler(device_t dev, bool present)
 		} else
 			AW_MMC_UNLOCK(sc);
 	}
+#endif /* MMCCAM */
 }
 
 static int


More information about the svn-src-all mailing list