lis33: turn down the no IRQ message
PATCH 1/1 lis33: turn down the no IRQ message
From: Kalhan Trisal <[email protected]>
Turn down the no IRQ message - on some platforms that's a normal state of affairs.
---
drivers/hwmon/lis3lv02d.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/lis3lv02d.c +1 -1
@@ -957,7 +957,7 @@ int lis3lv02d_init_device(struct lis3lv02d *dev)/* bail if we did not get an IRQ from the bus layer */ if (!dev->irq) { -pr_err ("No IRQ. Disabling /dev/freefall\n" ); +pr_debug ("No IRQ. Disabling /dev/freefall\n" ); goto out; }
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 7 lines · Alan Cox
From: Kalhan Trisal <[email protected]>
Turn down the no IRQ message - on some platforms that's a normal state of affairs.
Signed-off-by Kalhan Trisal <[email protected]>Signed-off-by Alan Cox <[email protected]>
Wondering - pr_err was too strong, but maybe pr_info would make sense to inform the user that /dev/freefall won't work. Otherwise we may get support requests with people complaining about it, and we won't be able to see the reason.
Thoughts ?
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 17 lines · Alan Cox
Quoted 14 lines · On Tue, 25 Jan 2011 07:53:01 -0800 Guenter Roeck <[email protected]>…
Quoted 7 lines · Alan Cox
From: Kalhan Trisal <[email protected]>
Turn down the no IRQ message - on some platforms that's a normal state of affairs.
Signed-off-by Kalhan Trisal <[email protected]>Signed-off-by Alan Cox <[email protected]>Wondering -
pr_errwas too strong, but maybepr_infowould make sense to inform the user that/dev/freefallwon't work. Otherwise we may get support requests with people complaining about it, and we won't be able to see the reason.
Quoted 8 lines
Quoted 1 line
Thoughts ?
That or pass whether
/dev/freefallis wanted in the platform data somewhere ?Basically though if
dev->irqis not set it means there is no IRQ, and that isn't neccessarily an error.
Difference is developer knowledge (no irq) vs. user understanding. Sure, no irq implies no freefall, and that is not an error. However, the user won't know that, and thus might appreciate a note.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 10 lines · Alan Cox
Quoted 6 lines
Quoted 3 lines
Basically though if
dev->irqis not set it means there is no IRQ, and that isn't neccessarily an error.Difference is developer knowledge (no irq) vs. user understanding. Sure, no irq implies no freefall, and that is not an error. However, the user won't know that, and thus might appreciate a note.
Unfortunately what happens is the user of the case it's not an error gets a big scary message and panics thinking the device is broken.
Hmm ... ok, I'll accept that, and redirect any resulting support cases to you ;).
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Guenter Roeck
AppliedQuoted 7 lines · Alan Cox
From: Kalhan Trisal <[email protected]>
Turn down the no IRQ message - on some platforms that's a normal state of affairs.
Signed-off-by Kalhan Trisal <[email protected]>Signed-off-by Alan Cox <[email protected]>
Applied.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Op 25-01-11 16:09, Alan Cox schreef:
Quoted 7 lines
From: Kalhan Trisal<[email protected]>
Turn down the no IRQ message - on some platforms that's a normal state of affairs.
Signed-off-by Kalhan Trisal<[email protected]>Signed-off-by Alan Cox<[email protected]>
With the updated subject, it's fine for me. Debug level sounds good as it's something you really care only when you are trying to debug a problem.
Thanks,
Eric
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 9 lines · Guenter Roeck
Quoted 7 lines · Alan Cox
From: Kalhan Trisal <[email protected]>
Turn down the no IRQ message - on some platforms that's a normal state of affairs.
Signed-off-by Kalhan Trisal <[email protected]>Signed-off-by Alan Cox <[email protected]>
Quoted 6 lines
Wondering -
pr_errwas too strong, but maybepr_infowould make sense to inform the user that/dev/freefallwon't work. Otherwise we may get support requests with people complaining about it, and we won't be able to see the reason.Thoughts ?
The comment says: "on some platforms that's a normal state of affairs". So it's down to: can there be other reasons to the missing IRQ than these platforms where we expect it? If not, then pr_debug() is right. If there is, then we need separate messages for the expected and unexpected cases.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 6 lines · Éric Piel
Op 25-01-11 16:09, Alan Cox schreef:
Quoted 5 lines
From: Kalhan Trisal<[email protected]>
Turn down the no IRQ message - on some platforms that's a normal state of affairs.
Quoted 7 lines
Quoted 2 lines
Signed-off-by Kalhan Trisal<[email protected]>Signed-off-by Alan Cox<[email protected]>With the updated subject, it's fine for me. Debug level sounds good as it's something you really care only when you are trying to debug a problem.
Acked-by Éric Piel <[email protected]>
Added.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 15 lines · Jean Delvare
Quoted 14 lines · Guenter Roeck
Quoted 7 lines · Alan Cox
From: Kalhan Trisal <[email protected]>
Turn down the no IRQ message - on some platforms that's a normal state of affairs.
Signed-off-by Kalhan Trisal <[email protected]>Signed-off-by Alan Cox <[email protected]>Wondering -
pr_errwas too strong, but maybepr_infowould make sense to inform the user that/dev/freefallwon't work. Otherwise we may get support requests with people complaining about it, and we won't be able to see the reason.
Quoted 8 lines
Quoted 1 line
Thoughts ?
The comment says: "on some platforms that's a normal state of affairs". So it's down to: can there be other reasons to the missing IRQ than these platforms where we expect it? If not, then
pr_debug()is right. If there is, then we need separate messages for the expected and unexpected cases.
I don't think there can be other reasons, unless there is a bug somewhere, which of course is always possible. Only reason for bringing it up was that someone had complained about the missing /dev/freefall a couple of months ago.
Anyway, since Eric is fine with pr_debug, let's stick with it.
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors