mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
aw_mmc: Start a mmccam discovery when the CD handler is called.
Submitted by: kibab
This commit is contained in:
parent
c7a4994853
commit
9bca466745
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue