]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-au1550: properly terminate zero-byte transfers
authorManuel Lauss <mano@roarinelk.homelinux.net>
Sun, 27 Jan 2008 17:14:52 +0000 (18:14 +0100)
committerJean Delvare <khali@hyperion.delvare>
Sun, 27 Jan 2008 17:14:52 +0000 (18:14 +0100)
commitb9f975668301d88742b4703d4540008e74e2c91d
treeb59d826d3972f8cc58e587b437e4993bfe7da2b8
parente3611bc583642bb28041007fd8d3eed1071ead6e
i2c-au1550: properly terminate zero-byte transfers

Zero-bytes transfers would leave the bus transaction unfinished
(no i2c stop is sent), with the following transfer actually
sending the slave address to the previously addressed device,
resulting in weird device failures (e.g. reset minute register
values in my RTC).
This patch instructs the controller to send an I2C STOP right after
the slave address in case of a zero-byte transfer.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-au1550.c