aw_mmc: Start a mmccam discovery when the CD handler is called.

Submitted by:	kibab
This commit is contained in:
Emmanuel Vadot 2020-07-22 18:33:36 +00:00
parent c7a4994853
commit 9bca466745
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363426

View File

@ -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