diff options
-rw-r--r-- | kernel/irq/manage.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index bb32326afe87..7c475cd3f6e6 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -7,6 +7,8 @@ | |||
7 | * This file contains driver APIs to the irq subsystem. | 7 | * This file contains driver APIs to the irq subsystem. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #define pr_fmt(fmt) "genirq: " fmt | ||
11 | |||
10 | #include <linux/irq.h> | 12 | #include <linux/irq.h> |
11 | #include <linux/kthread.h> | 13 | #include <linux/kthread.h> |
12 | #include <linux/module.h> | 14 | #include <linux/module.h> |
@@ -565,7 +567,7 @@ int __irq_set_trigger(struct irq_desc *desc, unsigned int irq, | |||
565 | * IRQF_TRIGGER_* but the PIC does not support multiple | 567 | * IRQF_TRIGGER_* but the PIC does not support multiple |
566 | * flow-types? | 568 | * flow-types? |
567 | */ | 569 | */ |
568 | pr_debug("genirq: No set_type function for IRQ %d (%s)\n", irq, | 570 | pr_debug("No set_type function for IRQ %d (%s)\n", irq, |
569 | chip ? (chip->name ? : "unknown") : "unknown"); | 571 | chip ? (chip->name ? : "unknown") : "unknown"); |
570 | return 0; | 572 | return 0; |
571 | } | 573 | } |
@@ -600,7 +602,7 @@ int __irq_set_trigger(struct irq_desc *desc, unsigned int irq, | |||
600 | ret = 0; | 602 | ret = 0; |
601 | break; | 603 | break; |
602 | default: | 604 | default: |
603 | pr_err("genirq: Setting trigger mode %lu for irq %u failed (%pF)\n", | 605 | pr_err("Setting trigger mode %lu for irq %u failed (%pF)\n", |
604 | flags, irq, chip->irq_set_type); | 606 | flags, irq, chip->irq_set_type); |
605 | } | 607 | } |
606 | if (unmask) | 608 | if (unmask) |
@@ -837,7 +839,7 @@ void exit_irq_thread(void) | |||
837 | 839 | ||
838 | action = kthread_data(tsk); | 840 | action = kthread_data(tsk); |
839 | 841 | ||
840 | pr_err("genirq: exiting task \"%s\" (%d) is an active IRQ thread (irq %d)\n", | 842 | pr_err("exiting task \"%s\" (%d) is an active IRQ thread (irq %d)\n", |
841 | tsk->comm ? tsk->comm : "", tsk->pid, action->irq); | 843 | tsk->comm ? tsk->comm : "", tsk->pid, action->irq); |
842 | 844 | ||
843 | desc = irq_to_desc(action->irq); | 845 | desc = irq_to_desc(action->irq); |
@@ -1044,7 +1046,7 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) | |||
1044 | * has. The type flags are unreliable as the | 1046 | * has. The type flags are unreliable as the |
1045 | * underlying chip implementation can override them. | 1047 | * underlying chip implementation can override them. |
1046 | */ | 1048 | */ |
1047 | pr_err("genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq %d\n", | 1049 | pr_err("Threaded irq requested with handler=NULL and !ONESHOT for irq %d\n", |
1048 | irq); | 1050 | irq); |
1049 | ret = -EINVAL; | 1051 | ret = -EINVAL; |
1050 | goto out_mask; | 1052 | goto out_mask; |
@@ -1095,7 +1097,7 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) | |||
1095 | 1097 | ||
1096 | if (nmsk != omsk) | 1098 | if (nmsk != omsk) |
1097 | /* hope the handler works with current trigger mode */ | 1099 | /* hope the handler works with current trigger mode */ |
1098 | pr_warning("genirq: irq %d uses trigger mode %u; requested %u\n", | 1100 | pr_warning("irq %d uses trigger mode %u; requested %u\n", |
1099 | irq, nmsk, omsk); | 1101 | irq, nmsk, omsk); |
1100 | } | 1102 | } |
1101 | 1103 | ||
@@ -1133,7 +1135,7 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) | |||
1133 | 1135 | ||
1134 | mismatch: | 1136 | mismatch: |
1135 | if (!(new->flags & IRQF_PROBE_SHARED)) { | 1137 | if (!(new->flags & IRQF_PROBE_SHARED)) { |
1136 | pr_err("genirq: Flags mismatch irq %d. %08x (%s) vs. %08x (%s)\n", | 1138 | pr_err("Flags mismatch irq %d. %08x (%s) vs. %08x (%s)\n", |
1137 | irq, new->flags, new->name, old->flags, old->name); | 1139 | irq, new->flags, new->name, old->flags, old->name); |
1138 | #ifdef CONFIG_DEBUG_SHIRQ | 1140 | #ifdef CONFIG_DEBUG_SHIRQ |
1139 | dump_stack(); | 1141 | dump_stack(); |