pkarashchenko commented on code in PR #6419:
URL: https://github.com/apache/incubator-nuttx/pull/6419#discussion_r895506550


##########
drivers/mmcsd/sdio.c:
##########
@@ -460,15 +460,15 @@ int sdio_enable_function(FAR struct sdio_dev_s *dev, 
uint8_t function)
       return ret;
     }
 
-  /* Wait 10ms for function to be enabled */
+  /* Wait 1s for function to be enabled */
 
-  int loops = 10;
+  int loops = 100;
 
   while (loops-- > 0)
     {
-      up_mdelay(1);
+      up_mdelay(10);

Review Comment:
   can we use `nxsig_usleep()` here? Or the scheduler is not running at this 
moment?



-- 
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]

Reply via email to