xiaoxiang781216 commented on code in PR #7472:
URL: https://github.com/apache/incubator-nuttx/pull/7472#discussion_r1011101420


##########
arch/arm/src/cxd56xx/cxd56_spi.c:
##########
@@ -871,7 +886,7 @@ static void spi_exchange(struct spi_dev_s *dev, const void 
*txbuffer,
   size_t dmath = 0;
 #endif
 
-  if (priv->dmaenable && dmath < nwords)
+  if (priv->txdmach && priv->rxdmach && dmath < nwords)
     {

Review Comment:
   Yes, because txdmach and rxdmach doesn't initialize at runtime anymore, so 
dmaenable which is used to identify the initialization result doesn't need too.



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