PCI: add infrastructure for devices with broken INTx masking
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 16 Jun 2012 20:40:22 +0000 (14:40 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 16 Jun 2012 20:40:22 +0000 (14:40 -0600)
commitfbebb9fd22581b6422d60669c4ff86ce99d6cdba
treef7063ec22814ee7782d1ccdb6f8653404d6714c8
parentcfaf025112d3856637ff34a767ef785ef5cf2ca9
PCI: add infrastructure for devices with broken INTx masking

pci_intx_mask_supported() assumes INTx masking is supported if the
PCI_COMMAND_INTX_DISABLE bit is writable.  But when that bit is set,
some devices don't actually mask INTx or update PCI_STATUS_INTERRUPT
as we expect.

This patch adds a way for quirks to identify these broken devices.

[bhelgaas: split out from Chelsio quirk addition]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
drivers/pci/quirks.c
include/linux/pci.h