]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: pciehp: Return IRQ_NONE when we can't read interrupt status
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 8 Sep 2016 21:43:40 +0000 (16:43 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 14 Sep 2016 19:24:25 +0000 (14:24 -0500)
commit39687c7ce4117b021585bf237f47ec5545cdfcdb
tree24ac6db9a62e737f6a320c0335fcabdf8d30678e
parent92fe73d34c7375207928df612eeb88da1035f5e0
PCI: pciehp: Return IRQ_NONE when we can't read interrupt status

After 489d5337f728 ("PCI: pciehp: Handle invalid data when reading from
non-existent devices"), we returned IRQ_HANDLED when we failed to read
interrupt status from the bridge.  I think it's better to return IRQ_NONE,
as we do in other cases where there's no interrupt pending.  This will
facilitate refactoring the loop in pcie_isr(): we'll be able to call the
ISR in a loop as long as it returns IRQ_HANDLED.

Return IRQ_NONE if we couldn't read interrupt status.

Tested-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/hotplug/pciehp_hpc.c