]> git.karo-electronics.de Git - karo-tx-linux.git/commit
I2C: OMAP: NACK without STP
authorJan Weitzel <j.weitzel@phytec.de>
Wed, 7 Dec 2011 19:50:16 +0000 (11:50 -0800)
committerKevin Hilman <khilman@ti.com>
Tue, 13 Dec 2011 19:48:55 +0000 (11:48 -0800)
commitb51c912cbd9cf839ae7b2c46f6a220305e7943ab
treea9907210008c2aba708c4b9a1b2cf419842ba8bb
parent3f6b2a8bd6e4ff43269d89066a9fe06a0e5ba961
I2C: OMAP: NACK without STP

On OMAP4 OMAP_I2C_STAT_NACK is causing a timeout on the next access.
The isr cleans all flags in OMAP_I2C_CON_REG by setting OMAP_I2C_CON_STP
OMAP_I2C_CON_STP is also set in omap_i2c_xfer_msg on the last message.

According to the TI TSR the sequence for OMAP_I2C_STAT_NACK and
OMAP_I2C_STAT_AL are nearly the same.
Removing the OMAP_I2C_CON_STP part in the isr fix the problem.
Tested on OMAP4430 and OMAP3530 (here NACK was not a problem)
Fixes also booting on 2430sdp.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/i2c/busses/i2c-omap.c