Skip to content

Commit 4d34bee

Browse files
sebhubcfriedt
authored andcommitted
drivers: i2c: mchp_mss: Rework
Use a mutex to protect the I2C bus from concurrent access. Replace busy waiting with a binary semaphore. Process the messages in the interrupt handler state machine to generate a single transaction. In the interrupt handler, process the states until nothing more is to do. This prevents superfluous interrupt entry/exit pairs. Return error conditions to the caller. Check the messages for consistency and return an error for unsupported message lists. Signed-off-by: Sebastian Huber <[email protected]>
1 parent a8514b5 commit 4d34bee

File tree

1 file changed

+246
-217
lines changed

1 file changed

+246
-217
lines changed

0 commit comments

Comments
 (0)