rtucker85 commented on code in PR #6062:
URL: https://github.com/apache/incubator-nuttx/pull/6062#discussion_r850344894


##########
arch/arm/src/sam34/sam_hsmci.c:
##########
@@ -1800,6 +1802,9 @@ static int sam_sendcmd(FAR struct sdio_dev_s *dev,
          cmd, arg, regval);
   putreg32(regval, SAM_HSMCI_CMDR);
   sam_cmdsample1(SAMPLENDX_AFTER_CMDR);
+
+  nxsig_usleep(10);

Review Comment:
   In my testing, without the delay, card initialisation was unsuccessful.
   Card initialisation is successful when mcinfo is turned on. This is because 
of the added execution time to run mcinfo @ line 1801.
   Inserting the delay replicates this behaviour.
   
   It appears the timing between sam_sendcmd and sam_waitresponse is too short.
   
   Happy to investigate better ways to achieve this if you wish?



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