Skip to content

Commit

Permalink
i2c: mpc: Interrupt driven transfer
Browse files Browse the repository at this point in the history
The fsl-i2c controller will generate an interrupt after every byte
transferred. Make use of this interrupt to drive a state machine which
allows the next part of a transfer to happen as soon as the interrupt is
received. This is particularly helpful with SMBUS devices like the LM81
which will timeout if we take too long between bytes in a transfer.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
  • Loading branch information
Chris Packham authored and Wolfram Sang committed Apr 15, 2021
1 parent e5b2e3e commit 1538d82
Showing 1 changed file with 239 additions and 187 deletions.
Loading

0 comments on commit 1538d82

Please sign in to comment.