jlaitine opened a new pull request, #20427: URL: https://github.com/apache/nuttx/pull/20427
## Summary This is just a small fix for the imxrt i2c reset functionality. Enabling i2c reset on imxrt1180 caused a crash. If the bus recovery fails, the clock was left off. But the client (px4 in my case) still has a reference to the bus and will try to use it again. The next register access to the i2c with clocks being disabled crashed the board. To fix this, we should just re-initialize the bus even in the case the bus cannot be re-covered. ## Impact Fixes a crash on imxrt118x board in case i2c bus is permanently stuck, and reset doesn't recover it. ## Testing Tested on imxrt118x-evk board, with faulty i2c connection. Without the fix, trying to reset the i2c bus and then continue using it, crashes the whole board. With the fix, the operation is correct; the next attempt to use the bus just fails, leading the application to try another reset. -- 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]
