aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2011-10-30 08:47:25 -0400
committerJean Delvare <khali@endymion.delvare>2011-10-30 08:47:25 -0400
commitf6beb67d8e77454200acc3755344944bd946cded (patch)
treec62f448caba0faf186bd3076970c19ffef39de1a /drivers
parent1bddab7f7d5b61f17b0bbd669f60818d553620be (diff)
i2c-algo-bit: Be verbose on bus testing failure
If bus testing fails due to the bus being seen as busy, it might be helpful for developers to know which line is unexpectedly low. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/algos/i2c-algo-bit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers/i2c/algos/i2c-algo-bit.c
index 66bebfc81c22..c20530a98ca3 100644
--- a/drivers/i2c/algos/i2c-algo-bit.c
+++ b/drivers/i2c/algos/i2c-algo-bit.c
@@ -250,7 +250,9 @@ static int test_bus(struct i2c_adapter *i2c_adap)
250 sda = getsda(adap); 250 sda = getsda(adap);
251 scl = (adap->getscl == NULL) ? 1 : getscl(adap); 251 scl = (adap->getscl == NULL) ? 1 : getscl(adap);
252 if (!scl || !sda) { 252 if (!scl || !sda) {
253 printk(KERN_WARNING "%s: bus seems to be busy\n", name); 253 printk(KERN_WARNING
254 "%s: bus seems to be busy (scl=%d, sda=%d)\n",
255 name, scl, sda);
254 goto bailout; 256 goto bailout;
255 } 257 }
256 258