]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-pasemi: Fix NACK detection
authorJean Delvare <khali@linux-fr.org>
Fri, 16 Nov 2007 09:24:36 +0000 (10:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Nov 2007 17:42:27 +0000 (09:42 -0800)
commit4a050d6c579a97dbcac44857daf8489f4ba6783a
tree4df13d0e4caa4497f054924ffd413aab184238b4
parentb8ba0a6f58e67c059c323a0896949a41befd0003
i2c-pasemi: Fix NACK detection

patch be8a1f7cd4501c3b4b32543577a33aee6d2193ac in mainline.

Turns out we don't actually check the status to see if there was a
device out there to talk to, just if we had a timeout when doing so.

Add the proper check, so we don't falsly think there are devices
on the bus that are not there, etc.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-pasemi.c