bitbang_i2c: Fix spurious slave read after NACK
commit2eb9f241824d000fcd90bd7f4b49e40b88e62975
authorMarcus Comstedt <marcus@mc.pp.se>
Sat, 28 May 2011 14:55:52 +0000 (28 16:55 +0200)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Sat, 28 May 2011 14:20:43 +0000 (28 16:20 +0200)
tree08d231f45abff02e4c377da0bb01e2aa4198c569
parent42a623c7db82865a9224c15cbace27b2acd65834
bitbang_i2c: Fix spurious slave read after NACK

After NACKing a read operation, a raising SCL should not trigger a new
read from the slave.  Introduce a new state which just waits for a stop
or start condition after NACK.

Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/bitbang_i2c.c