mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
MMCSD_SDIO: Only wait for card ejected if card detection is supported
This commit is contained in:
committed by
Gregory Nutt
parent
3b9bcd57ba
commit
c482437325
@@ -3050,9 +3050,11 @@ static int mmcsd_probe(FAR struct mmcsd_state_s *priv)
|
|||||||
finfo("Capacity: %lu Kbytes\n", (unsigned long)(priv->capacity / 1024));
|
finfo("Capacity: %lu Kbytes\n", (unsigned long)(priv->capacity / 1024));
|
||||||
priv->mediachanged = true;
|
priv->mediachanged = true;
|
||||||
|
|
||||||
|
#ifdef CONFIG_MMCSD_HAVECARDDETECT
|
||||||
/* Set up to receive asynchronous, media removal events */
|
/* Set up to receive asynchronous, media removal events */
|
||||||
|
|
||||||
SDIO_CALLBACKENABLE(priv->dev, SDIOMEDIA_EJECTED);
|
SDIO_CALLBACKENABLE(priv->dev, SDIOMEDIA_EJECTED);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* REVISIT: There is a problem here. If mmcsd_initialize() returns a
|
/* REVISIT: There is a problem here. If mmcsd_initialize() returns a
|
||||||
|
|||||||
Reference in New Issue
Block a user