diff options
author | Conor Dooley <[email protected]> | 2022-08-05 08:43:46 +0100 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2022-08-11 14:28:56 +0200 |
commit | dde61c48303afae6d5db50fc2c9f7199413945e5 (patch) | |
tree | 89862558ac56097f4e1d10b9cfa7651e442bea71 /include/linux/fpga/fpga-bridge.h | |
parent | 0a0b80a44c7d111a0404d91847db57be8b667a15 (diff) |
i2c: microchip-corei2c: fix erroneous late ack send
A late ack is currently being sent at the end of a transfer due to
incorrect logic in mchp_corei2c_empty_rx(). Currently the Assert Ack
bit is being written to the controller's control reg after the last
byte has been received, causing it to sent another byte with the ack.
Instead, the AA flag should be written to the control register when
the penultimate byte is read so it is sent out for the last byte.
Reported-by: Andreas Buerkler <[email protected]>
Fixes: 64a6f1c4987e ("i2c: add support for microchip fpga i2c controllers")
Tested-by: Lewis Hanly <[email protected]>
Signed-off-by: Conor Dooley <[email protected]>
[wsa: fixed typos in commit message]
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions