]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
i2c-omap: OMAP3430 Silicon Errata 1.153
authorSonasath, Moiz <m-sonasath@ti.com>
Tue, 21 Jul 2009 15:15:12 +0000 (10:15 -0500)
committerBen Dooks <ben-linux@fluff.org>
Thu, 30 Jul 2009 00:03:24 +0000 (01:03 +0100)
commitcd086d3aa6f7f7bf4d4e1f9fa09af0f0b6bb99ec
treeca0452e20152aaab9ef936dd624a0d51ddfee763
parent04c688dd7a65935568b44629bfaa122eddf76e94
i2c-omap: OMAP3430 Silicon Errata 1.153

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 <m-sonasath@ti.com>
Signed-off-by: Vikram pandita <vikram.pandita@ti.com>
[ben-linux@fluff.org: fixed mail format and added i2c-omap to subject]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-omap.c