projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bddab7
)
i2c-algo-bit: Be verbose on bus testing failure
author
Jean Delvare
<jdelvare@suse.de>
Sun, 30 Oct 2011 12:47:25 +0000
(13:47 +0100)
committer
Jean Delvare
<khali@endymion.delvare>
Sun, 30 Oct 2011 12:47:25 +0000
(13:47 +0100)
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>
drivers/i2c/algos/i2c-algo-bit.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/algos/i2c-algo-bit.c
b/drivers/i2c/algos/i2c-algo-bit.c
index 66bebfc81c2244adc04c6d5674d1ee6b4029f279..c20530a98ca32d0aed7a833d315438344a1f43f9 100644
(file)
--- 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)
sda = getsda(adap);
scl = (adap->getscl == NULL) ? 1 : getscl(adap);
if (!scl || !sda) {
- printk(KERN_WARNING "%s: bus seems to be busy\n", name);
+ printk(KERN_WARNING
+ "%s: bus seems to be busy (scl=%d, sda=%d)\n",
+ name, scl, sda);
goto bailout;
}