i2c: designware: prevent early stop on TX FIFO empty
authorAndrew Jackson <Andrew.Jackson@arm.com>
Tue, 5 Aug 2014 11:59:54 +0000 (12:59 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 8 Aug 2014 13:44:52 +0000 (14:44 +0100)
commita72b2155b2dbd940374173b1c49338d0d3ed7f6d
treeefc6585f3cee8fd8f95822f041e76b3711af669a
parent09e30808bf28bc81a72c869021af1f3569a92aba
i2c: designware: prevent early stop on TX FIFO empty

If the Designware core is configured with IC_EMPTYFIFO_HOLD_MASTER_EN
set to zero, allowing the TX FIFO to become empty causes a STOP
condition to be generated on the I2C bus. If the transmit FIFO
threshold is set too high, an erroneous STOP condition can be
generated on long transfers - particularly where the interrupt
latency is extended.

Signed-off-by: Andrew Jackson <Andrew.Jackson@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/i2c/busses/i2c-designware-core.c