PCI: Use cached MSI cap while enabling MSI interrupts
authorGavin Shan <shangw@linux.vnet.ibm.com>
Thu, 4 Apr 2013 16:54:32 +0000 (16:54 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Apr 2013 15:50:30 +0000 (09:50 -0600)
commitf465136d7287538cabdcdbf8deb24f99a9f855e4
tree42cf963af111d5cdbf25b0840a8b83ecb946cb22
parentcdf1fd4d906bc8c06510fd3e1d6a073441792792
PCI: Use cached MSI cap while enabling MSI interrupts

The patch uses the cached MSI capability offset in pci_dev instead
of reading it from config space when enabling MSI interrupts.

[bhelgaas: removed unrelated msi_control_reg() changes]
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi.c