diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2009-01-13 16:39:39 +0300 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.lan> | 2009-03-20 05:29:21 +0300 |
commit | 90e9cd50f7feeddc911325c8a8c1b7e1fccc6599 (patch) | |
tree | 4a9536daa4ea8e8b96be4cb20f93ea6237663144 /include/linux/pcieport_if.h | |
parent | 1bf83e558cb29d163f4bc6decbc3800ecf4db195 (diff) | |
download | linux-90e9cd50f7feeddc911325c8a8c1b7e1fccc6599.tar.xz |
PCI: PCIe portdrv: Aviod using service devices with wrong interrupts
The PCI Express port driver should not attempt to register service
devices that require the ability to generate interrupts if generating
interrupts is not possible. Namely, if the port has no interrupt pin
configured and we cannot set up MSI or MSI-X for it, there is no way
it can generate interrupts and in such a case the port services that
rely on interrupts (PME, PCIe HP, AER) should not be enabled for it.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pcieport_if.h')
-rw-r--r-- | include/linux/pcieport_if.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pcieport_if.h b/include/linux/pcieport_if.h index 194409af1037..8e1ae1fd92f6 100644 --- a/include/linux/pcieport_if.h +++ b/include/linux/pcieport_if.h @@ -22,6 +22,7 @@ #define PCIE_PORT_SERVICE_VC 8 /* Virtual Channel */ /* Root/Upstream/Downstream Port's Interrupt Mode */ +#define PCIE_PORT_NO_IRQ (-1) #define PCIE_PORT_INTx_MODE 0 #define PCIE_PORT_MSI_MODE 1 #define PCIE_PORT_MSIX_MODE 2 |