i2c: at91: fix SMBus quick command
authorLudovic Desroches <ludovic.desroches@atmel.com>
Tue, 13 Nov 2012 15:43:21 +0000 (16:43 +0100)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 14 Nov 2012 09:33:21 +0000 (10:33 +0100)
commit0d852fe4d27fa82de9fdcbda9a5ac634800b1fd1
tree9f0c3e40dd2e3cf12fd35ae6a9fcfac1e0ce3943
parent77b67063bb6bce6d475e910d3b886a606d0d91f7
i2c: at91: fix SMBus quick command

The driver claims to support SMBus quick command but it was not the
case. This patch fixes this issue. Without it, i2cdetect finds imaginary
devices. And with some IP versions, trying to send 0 byte can cause
issue when writing data to an EEPROM.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
[wsa: improved the commit message]

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-at91.c