pussuw opened a new pull request, #15819:
URL: https://github.com/apache/nuttx/pull/15819

   ## Summary
   
   This removes several error conditions that can be present after a failed
   i2c transaction. The most important of them is the priv->sem_isr semaphore
   which can be signaled due to a race condition.
   
   This also ensures the i2c device itself is in idle state before futzing
   around with it.
   
   Also, add a comment about the SI-flag in the I2C CTRL register; it has
   a hidden dual meaning. Not only does it clear a pending interrupt, it
   also moves the I2C IP state machine forward. This requires extra logic
   in the driver to cope.
   
   The second patch increases the transfer timeout margin, to account for 
system internal latencies (mainly interrupt latencies).
   
   ## Impact
   
   Impact is the MPFS platform's i2c driver only. No other targets are affected.
   
   ## Testing
   
   Tested with a downstream MPFS target with multiple i2c buses, which contain 
multiple i2c devices.
   


-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to