i2c: sis630: fix behavior after collision
authorAmaury Decrême <amaury.decreme@gmail.com>
Mon, 28 Jan 2013 21:21:07 +0000 (22:21 +0100)
committerWolfram Sang <wolfram@the-dreams.de>
Mon, 11 Feb 2013 14:59:39 +0000 (15:59 +0100)
commit499b9194ad7b7b6d7c06b01005508e5bcf3c8980
tree5dd4cbd3739226e616635d036383d2ef036189a9
parentaa9e7a39c5a5a77ff02670ef915f4c6712bc7658
i2c: sis630: fix behavior after collision

Datasheet on collision:
SMBus Collision (SMBCOL_STS)
This bit is set when a SMBus Collision condition occurs and
SMBus Host loses in the bus arbitration. The software should
clear this bit and re-start SMBus operation.

As the status will be cleared in transaction_end, we can remove the
sis630_write and prepare to return -EAGAIN to retry.

Signed-off-by: Amaury Decrême <amaury.decreme@gmail.com>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
drivers/i2c/busses/i2c-sis630.c