commit | e8f39e9fc0e0b7bce24922da925af820bacb8ef8 | [log] [tgz] |
---|---|---|
author | David Engraf <david.engraf@sysgo.com> | Thu Apr 26 11:53:14 2018 +0200 |
committer | Wolfram Sang <wsa@the-dreams.de> | Mon Apr 30 10:39:28 2018 +0200 |
tree | e5924b6a5f72b3a9e98f3970a1319b2959447b5e | |
parent | 562de4ff4cd2beb1bd3a1581e22623f05b114c97 [diff] |
i2c: at91: Read all available bytes at once With FIFO enabled it is possible to read multiple bytes at once in the interrupt handler as long as RXRDY is set. This may also reduce the number of interrupts. This patch polls RXRDY and reads all available bytes at once. Signed-off-by: David Engraf <david.engraf@sysgo.com> Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com> [wsa: reformatted comment] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>