mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
5cd2a1ae68
drivers/mmcsd: Fixes bug where thread gets deadlocked due to recursive call and addresses comment regarding events. When initializing the MMCSD, if we are being told there is a card, but we fail to initialize it, we should not re-register for an insertion event as this will immediately cause us to call in again. Instead, we should register for a removal event and wait for the card to be removed and re-inserted. Approved-by: Gregory Nutt <gnutt@nuttx.org>