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:
fcc392d
)
irqchip/armada-370-xp: Use PCI_MSI_DOORBELL_START where appropriate
author
Thomas Petazzoni
<
[email protected]
>
Wed, 10 Feb 2016 14:46:58 +0000
(15:46 +0100)
committer
Jason Cooper
<
[email protected]
>
Tue, 16 Feb 2016 17:36:16 +0000
(17:36 +0000)
As suggested by Gregory Clement, this commit adjusts the
irq-armada-370-xp driver to use the PCI_MSI_DOORBELL_START define in
the armada_370_xp_handle_msi_irq() function, rather than hardcoding
its value.
Suggested-by: Gregory CLEMENT <
[email protected]
>
Signed-off-by: Thomas Petazzoni <
[email protected]
>
Acked-by: Gregory CLEMENT <
[email protected]
>
Link:
https://lkml.kernel.org/r/1455115621-22846-4-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <
[email protected]
>
drivers/irqchip/irq-armada-370-xp.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-armada-370-xp.c
b/drivers/irqchip/irq-armada-370-xp.c
index e5738c5d7a6c6a39c692022aab41c6089b23a3e1..f53eb716eccb16f343f3fd270b449639ed116b32 100644
(file)
--- a/
drivers/irqchip/irq-armada-370-xp.c
+++ b/
drivers/irqchip/irq-armada-370-xp.c
@@
-401,10
+401,10
@@
static void armada_370_xp_handle_msi_irq(struct pt_regs *regs, bool is_chained)
if (is_chained) {
irq = irq_find_mapping(armada_370_xp_msi_inner_domain,
- msinr -
16
);
+ msinr -
PCI_MSI_DOORBELL_START
);
generic_handle_irq(irq);
} else {
- irq = msinr -
16
;
+ irq = msinr -
PCI_MSI_DOORBELL_START
;
handle_domain_irq(armada_370_xp_msi_inner_domain,
irq, regs);
}