From 9d0e712347cffabb3fdb10ba72158415d4e1396c Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 10 Feb 2023 06:13:42 -0800 Subject: [PATCH] mmcsd_sdio:Release CPU during wait for Write Completion --- drivers/mmcsd/mmcsd_sdio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c index f61b140271..ce0f132f62 100644 --- a/drivers/mmcsd/mmcsd_sdio.c +++ b/drivers/mmcsd/mmcsd_sdio.c @@ -1268,6 +1268,10 @@ static int mmcsd_transferready(FAR struct mmcsd_state_s *priv) goto errorout; } + /* Do not hog the CPU */ + + nxsig_usleep(1000); + /* We are still in the programming state. Calculate the elapsed * time... we can't stay in this loop forever! */