aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/msi.c
diff options
context:
space:
mode:
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>2009-08-06 11:31:27 +0900
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-09 13:29:29 -0700
commitc901851fddb82529ddcd443d0778b1dee1386a14 (patch)
treee4dc3400c7d9109beb32e798812d718a159f896d /drivers/pci/msi.c
parent80286879c209034245f0a28a2171d2ec23b7481c (diff)
downloadkernel_samsung_aries-c901851fddb82529ddcd443d0778b1dee1386a14.zip
kernel_samsung_aries-c901851fddb82529ddcd443d0778b1dee1386a14.tar.gz
kernel_samsung_aries-c901851fddb82529ddcd443d0778b1dee1386a14.tar.bz2
PCI MSI: Remove attribute check from pci_disable_msi()
The msi_list never have MSI-X's msi_desc while MSI is enabled, and also it never have MSI's msi_desc while MSI-X is enabled. This patch remove check for MSI-X entry from the pci_disable_msi(), referring that pci_disable_msix() does not have any check for MSI entry. Reviewed-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r--drivers/pci/msi.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index d986afb..a7b72f6 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -640,17 +640,10 @@ void pci_msi_shutdown(struct pci_dev *dev)
void pci_disable_msi(struct pci_dev* dev)
{
- struct msi_desc *entry;
-
if (!pci_msi_enable || !dev || !dev->msi_enabled)
return;
pci_msi_shutdown(dev);
-
- entry = list_entry(dev->msi_list.next, struct msi_desc, list);
- if (entry->msi_attrib.is_msix)
- return;
-
msi_free_irqs(dev);
}
EXPORT_SYMBOL(pci_disable_msi);
@@ -774,13 +767,13 @@ void pci_msix_shutdown(struct pci_dev* dev)
pci_intx_for_msi(dev, 1);
dev->msix_enabled = 0;
}
+
void pci_disable_msix(struct pci_dev* dev)
{
if (!pci_msi_enable || !dev || !dev->msix_enabled)
return;
pci_msix_shutdown(dev);
-
msix_free_all_irqs(dev);
}
EXPORT_SYMBOL(pci_disable_msix);