aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-10 09:46:58 -0500
committerJason Cooper <jason@lakedaemon.net>2016-02-16 12:36:16 -0500
commit0636bab67fa4df68c85b28ba345596a72986fa9e (patch)
treeb09c7a9596dd3cce095ec4414785a194c5f5f7c1
parentfcc392d501bd2befdf35180abcf07b4849499ed6 (diff)
irqchip/armada-370-xp: Use PCI_MSI_DOORBELL_START where appropriate
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 <gregory.clement@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Link: https://lkml.kernel.org/r/1455115621-22846-4-git-send-email-thomas.petazzoni@free-electrons.com Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--drivers/irqchip/irq-armada-370-xp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c
index e5738c5d7a6c..f53eb716eccb 100644
--- 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)
401 401
402 if (is_chained) { 402 if (is_chained) {
403 irq = irq_find_mapping(armada_370_xp_msi_inner_domain, 403 irq = irq_find_mapping(armada_370_xp_msi_inner_domain,
404 msinr - 16); 404 msinr - PCI_MSI_DOORBELL_START);
405 generic_handle_irq(irq); 405 generic_handle_irq(irq);
406 } else { 406 } else {
407 irq = msinr - 16; 407 irq = msinr - PCI_MSI_DOORBELL_START;
408 handle_domain_irq(armada_370_xp_msi_inner_domain, 408 handle_domain_irq(armada_370_xp_msi_inner_domain,
409 irq, regs); 409 irq, regs);
410 } 410 }