You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "pkarashchenko (via GitHub)" <gi...@apache.org> on 2023/03/20 11:58:32 UTC

[GitHub] [nuttx] pkarashchenko commented on a diff in pull request #8852: spi_xx25xx: Repair the spi bus locking mechanism when waiting for write completion

pkarashchenko commented on code in PR #8852:
URL: https://github.com/apache/nuttx/pull/8852#discussion_r1142008319


##########
drivers/eeprom/spi_xx25xx.c:
##########
@@ -392,6 +393,7 @@ static void ee25xx_waitwritecomplete(struct ee25xx_dev_s *priv)
       /* Deselect the FLASH */
 
       SPI_SELECT(priv->spi, SPIDEV_EEPROM(0), false);
+      ee25xx_unlock(priv->spi);

Review Comment:
   Maybe can additionally change the function prototype to take `spi` as a parameter and not `priv` since nothing except `priv->spi` is used in the function body.



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org