xiaoxiang781216 commented on code in PR #12898:
URL: https://github.com/apache/nuttx/pull/12898#discussion_r1717399678
##########
drivers/mmcsd/mmcsd_sdio.c:
##########
@@ -1251,7 +1251,15 @@ static int mmcsd_transferready(FAR struct mmcsd_state_s
*priv)
/* Do not hog the CPU */
+#if CONFIG_USEC_PER_TICK <= 1000
nxsig_usleep(1000);
+#else
+#ifndef CONFIG_MMCSD_CHECK_READY_STATUS_WITHOUT_SLEEP
Review Comment:
```
#ifdef CONFIG_MMCSD_CHECK_READY_STATUS_WITHOUT_SLEEP
/* Use sched_yield when tick is big to avoid write low speed */
sched_yield();
#else
nxsig_usleep(1000);
#endif
```
##########
drivers/mmcsd/mmcsd_sdio.c:
##########
@@ -4187,6 +4205,11 @@ int mmcsd_slotinitialize(int minor, FAR struct
sdio_dev_s *dev)
mmcsd_initialize_procfs();
#endif
+ syslog(LOG_INFO, "MMC: %s %" PRIu64 "KB %s %s mode\n", devname,
Review Comment:
syslog->finfo
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]