mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
When an XRDY/XDR is hit, wait for XUDF before writing data to DATA_REG. Otherwise some data bytes can be lost while transferring them from the memory to the I2C interface. Do a Busy-wait for XUDF, before writing data to DATA_REG. While waiting if there is NACK | AL, set the appropriate error flags, ack the pending interrupts and return from the ISR. Signed-off-by: Moiz Sonasath <[email protected]> Signed-off-by: Vikram pandita <[email protected]> [[email protected]: fixed mail format and added i2c-omap to subject] Signed-off-by: Ben Dooks <[email protected]>