Skip to content
Commit 9fae82e1 authored by Harini Katakam's avatar Harini Katakam Committed by Wolfram Sang
Browse files

i2c: cadence: Handle > 252 byte transfers



The I2C controller sends a NACK to the slave when transfer size register
reaches zero, irrespective of the hold bit. So, in order to handle transfers
greater than 252 bytes, the transfer size register has to be maintained at a
value >= 1. This patch implements the same.
The interrupt status is cleared at the beginning of the isr instead of
the end, to avoid missing any interrupts.

Signed-off-by: default avatarHarini Katakam <harinik@xilinx.com>
[wsa: added braces around else branch]
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 1c574993
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment