This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 9d0e712347cffabb3fdb10ba72158415d4e1396c Author: David Sidrane <[email protected]> AuthorDate: Fri Feb 10 06:13:42 2023 -0800 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! */
