• H
    i2c: cadence: Handle > 252 byte transfers · 9fae82e1
    Harini Katakam 提交于
    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: NHarini Katakam <harinik@xilinx.com>
    [wsa: added braces around else branch]
    Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
    9fae82e1
i2c-cadence.c 26.7 KB