Skip to contentSkip to conversation

lis33: turn down the no IRQ message

PATCH Applied Alan Cox 4 participants 9 messages Jan 25, 2011 Hardware monitoring

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

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
index 1b674b7..d805e8e 100644
@@ -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

#1 lore raw
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.

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

#2 lore raw
In reply to Alan Cox
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.

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.

Quoted 8 lines
Quoted 1 line

Thoughts ?

That or pass whether /dev/freefall is wanted in the platform data somewhere ?

Basically though if dev->irq is 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

#3 lore raw
In reply to Alan Cox
Quoted 10 lines · Alan Cox
Quoted 6 lines
Quoted 3 lines

Basically though if dev->irq is 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

Acked-by on v1 1/1
#5 lore raw
In reply to Alan Cox

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.

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

#6 lore raw
In reply to Alan Cox
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.

Quoted 6 lines

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 ?

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
#7 lore raw
In reply to Alan Cox
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

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.

Added.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#8 lore raw
In reply to Alan Cox
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.

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.

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