Skip to content

Commit

Permalink
aw_mmc: Start a mmccam discovery when the CD handler is called.
Browse files Browse the repository at this point in the history
Submitted by:	kibab
  • Loading branch information
evadot committed Jul 22, 2020
1 parent c7a4994 commit 9bca466
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/arm/allwinner/aw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -397,6 +400,7 @@ aw_mmc_helper_cd_handler(device_t dev, bool present)
} else
AW_MMC_UNLOCK(sc);
}
#endif /* MMCCAM */
}

static int
Expand Down

0 comments on commit 9bca466

Please sign in to comment.