From foo@baz Tue Apr 9 12:12:43 2002 To: Greg KH Date: 29 Sep 2004 10:41:02 -07:00 From: dlsy@snoqualmie.dp.intel.com Subject: [PATCH] PCI: Hot-plug driver updates due to MSI change In kernel 2.6.8, MSI has been updated. This patch updates the two hot-plug drivers to call pci_disable_msi() per MSI change to undo the effect of pci_enable_msi() when the driver is unloading. Signed-off-by: Dely Sy Signed-off-by: Greg Kroah-Hartman diff -Nru a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c --- a/drivers/pci/hotplug/pciehp_hpc.c 2004-10-06 09:42:45 -07:00 +++ b/drivers/pci/hotplug/pciehp_hpc.c 2004-10-06 09:42:45 -07:00 @@ -741,6 +741,8 @@ if (php_ctlr->irq) { free_irq(php_ctlr->irq, ctrl); php_ctlr->irq = 0; + if (!pcie_mch_quirk) + pci_disable_msi(php_ctlr->pci_dev); } } if (php_ctlr->pci_dev) diff -Nru a/drivers/pci/hotplug/shpchp_hpc.c b/drivers/pci/hotplug/shpchp_hpc.c --- a/drivers/pci/hotplug/shpchp_hpc.c 2004-10-06 09:42:45 -07:00 +++ b/drivers/pci/hotplug/shpchp_hpc.c 2004-10-06 09:42:45 -07:00 @@ -792,6 +792,7 @@ if (php_ctlr->irq) { free_irq(php_ctlr->irq, ctrl); php_ctlr->irq = 0; + pci_disable_msi(php_ctlr->pci_dev); } } if (php_ctlr->pci_dev) {