Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2020 18:33:37 +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: r363426 - head/sys/arm/allwinner
Message-ID:  <202007221833.06MIXb86070477@repo.freebsd.org>

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



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