projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
753b19a
)
IB/hfi1: Return correct value in general interrupt handler
author
Kamenee Arumugam
<
[email protected]
>
Tue, 26 Sep 2017 13:06:15 +0000
(06:06 -0700)
committer
Doug Ledford
<
[email protected]
>
Wed, 27 Sep 2017 15:10:36 +0000
(11:10 -0400)
The general interrupt handler returns IRQ_HANDLED whether an IRQ
was handled or not.
Determine if an IRQ was handled and return the correct value.
Reviewed-by: Dennis Dalessandro <
[email protected]
>
Reviewed-by: Michael J. Ruhl <
[email protected]
>
Signed-off-by: Kamenee Arumugam <
[email protected]
>
Signed-off-by: Dennis Dalessandro <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/hfi1/chip.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hfi1/chip.c
b/drivers/infiniband/hw/hfi1/chip.c
index 27b75a8f5097e50a90fff3eb29f09a60e5d21edb..0be42787759fa78c73d0e0d9776209c2362a3ddc 100644
(file)
--- a/
drivers/infiniband/hw/hfi1/chip.c
+++ b/
drivers/infiniband/hw/hfi1/chip.c
@@
-8240,6
+8240,7
@@
static irqreturn_t general_interrupt(int irq, void *data)
u64 regs[CCE_NUM_INT_CSRS];
u32 bit;
int i;
+ irqreturn_t handled = IRQ_NONE;
this_cpu_inc(*dd->int_counter);
@@
-8260,9
+8261,10
@@
static irqreturn_t general_interrupt(int irq, void *data)
for_each_set_bit(bit, (unsigned long *)®s[0],
CCE_NUM_INT_CSRS * 64) {
is_interrupt(dd, bit);
+ handled = IRQ_HANDLED;
}
- return
IRQ_HANDLED
;
+ return
handled
;
}
static irqreturn_t sdma_interrupt(int irq, void *data)