]> err.no Git - linux-2.6/commit
i2c-au1550: Fix timeout problem
authorDomen Puncer <domen.puncer@ultra.si>
Sun, 13 Aug 2006 21:35:40 +0000 (23:35 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 22:38:50 +0000 (15:38 -0700)
commit8859942ede8154c1e90e3b0d1b60aecf0cfaa169
treeb71e1447c4bce6ce4b7dfca581430cacdfc95533
parent643bd3fbd9dc73ed3dc1e4f6980e6f15fdbb9bb6
i2c-au1550: Fix timeout problem

i2c-au1550: Fix timeout problem

Fix from Jordan Crouse:
If the transmit and recieve FIFOS are not empty, forceably flush them
rather then waiting for them to drain on their own.

This solves at least a problem reported by Clem Taylor:
http://www.linux-mips.org/archives/linux-mips/2006-05/msg00240.html
(1% of I2C transactions would timeout)

Signed-off-by: Domen Puncer <domen.puncer@ultra.si>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-au1550.c