* [PATCH] i2c: Improve logging on failure to probe for ->class devices
@ 2013-07-17 20:27 Andy Lutomirski
[not found] ` <7416fe787fbbe867a2a980b3a2e2de6cec7bf5f6.1374092773.git.luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Andy Lutomirski @ 2013-07-17 20:27 UTC (permalink / raw)
To: Wolfram Sang, linux-i2c-u79uwXL29TY76Z2rM5mHXA; +Cc: Andy Lutomirski
While writing the i2c-imc driver, I noticed that the warning message
when the i2c core can't figure out how to probe is mostly useless.
This trivial patch improves it.
Signed-off-by: Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
---
drivers/i2c/i2c-core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 991d38d..213df0a 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -1502,7 +1502,8 @@ static int i2c_default_probe(struct i2c_adapter *adap, unsigned short addr)
err = i2c_smbus_xfer(adap, addr, 0, I2C_SMBUS_READ, 0,
I2C_SMBUS_BYTE, &dummy);
else {
- dev_warn(&adap->dev, "No suitable probing method supported\n");
+ dev_warn(&adap->dev, "No suitable probing method supported for address 0x%02X\n",
+ addr);
err = -EOPNOTSUPP;
}
--
1.8.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] i2c: Improve logging on failure to probe for ->class devices
[not found] ` <7416fe787fbbe867a2a980b3a2e2de6cec7bf5f6.1374092773.git.luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
@ 2013-08-15 12:51 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2013-08-15 12:51 UTC (permalink / raw)
To: Andy Lutomirski; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 362 bytes --]
On Wed, Jul 17, 2013 at 01:27:59PM -0700, Andy Lutomirski wrote:
> While writing the i2c-imc driver, I noticed that the warning message
> when the i2c core can't figure out how to probe is mostly useless.
> This trivial patch improves it.
>
> Signed-off-by: Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
Applied to for-next, thanks!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-15 12:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-17 20:27 [PATCH] i2c: Improve logging on failure to probe for ->class devices Andy Lutomirski
[not found] ` <7416fe787fbbe867a2a980b3a2e2de6cec7bf5f6.1374092773.git.luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
2013-08-15 12:51 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).