Skip to content

Conversation

@FRASTM
Copy link
Contributor

@FRASTM FRASTM commented Nov 6, 2024

Check the return code of the i2c_target_read/write callback function is 0 before continuing the transmit/receive operation on I2C target When Transmitting: 0 if data has been provided, then continue When address matches: 0 if the write is accepted or if more data can be requested depending on the transfer direction.

Fixes #78352

Check the return code of the i2c_target_read/write callback function
is 0 before continuing the transmit/receive operation on I2C target
When Transmitting: 0 if data has been provided, then continue
When address matches: 0 if the write is accepted or
if more data can be requested depending on the transfer direction.

Signed-off-by: Francois Ramu <[email protected]>
@mmahadevan108 mmahadevan108 added this to the v4.0.0 milestone Nov 8, 2024
@mmahadevan108 mmahadevan108 merged commit c7cbe91 into zephyrproject-rtos:main Nov 8, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

driver: stm32-i2c-v2: i2c_target_read_processed_cb_t return value not respected

5 participants