linux/drivers/pci/pcie
Keith Busch 390e2db824 PCI/AER: Abstract AER interrupt handling
The aer_inject module was directly calling aer_irq().  This required the
AER driver export its private IRQ handler for no other reason than to
support error injection.  A driver should not have to expose its private
interfaces, so use the IRQ subsystem to route injection to the AER driver,
and make aer_irq() a private interface.

This provides additional benefits:

First, directly calling the IRQ handler bypassed the IRQ subsytem so the
injection wasn't really synthesizing what happens if a shared AER interrupt
occurs.

The error injection had to provide the callback data directly, which may be
racing with a removal that is freeing that structure.  The IRQ subsystem
can handle that race.

Finally, using the IRQ subsystem automatically reacts to threaded IRQs,
keeping the error injection abstracted from that implementation detail.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2018-10-18 19:43:09 -05:00
..
aer_inject.c PCI/AER: Abstract AER interrupt handling 2018-10-18 19:43:09 -05:00
aer.c PCI/AER: Abstract AER interrupt handling 2018-10-18 19:43:09 -05:00
aspm.c PCI/ASPM: Convert to use sysfs_match_string() helper 2018-08-06 14:30:34 -05:00
dpc.c PCI: Make link active reporting detection generic 2018-10-02 16:04:40 -05:00
err.c PCI/ERR: Remove duplicated include from err.c 2018-10-02 16:04:40 -05:00
Kconfig PCI/AER: Use "PCI Express" consistently in Kconfig text 2018-06-11 08:11:47 -05:00
Makefile PCI/AER: Hoist aerdrv.c, aer_inject.c up to drivers/pci/pcie/ 2018-06-11 08:11:39 -05:00
pme.c PCI/PME: Implement runtime PM callbacks 2018-10-02 16:04:40 -05:00
portdrv_core.c PCI/AER: Reuse existing pcie_port_find_device() interface 2018-10-18 19:42:54 -05:00
portdrv_pci.c PCI/portdrv: Add runtime PM hooks for port service drivers 2018-10-02 16:04:40 -05:00
portdrv.h PCI/AER: Abstract AER interrupt handling 2018-10-18 19:43:09 -05:00
ptm.c Merge branch 'pci/spdx' into next 2018-02-01 11:40:07 -06:00