[PATCH 1/7] MSI: remove __msi_set_enable() workaround

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since we have stop using prohibited method, setting enable bit
of MSI capability from fastpath is not needed anymore.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@xxxxxxxxxxxxxx>
---
 drivers/pci/msi.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index 1835481..e6e3fc5 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -70,10 +70,12 @@ arch_teardown_msi_irqs(struct pci_dev *dev)
 	}
 }
 
-static void __msi_set_enable(struct pci_dev *dev, int pos, int enable)
+static void msi_set_enable(struct pci_dev *dev, int enable)
 {
+	int pos;
 	u16 control;
 
+	pos = pci_find_capability(dev, PCI_CAP_ID_MSI);
 	if (pos) {
 		pci_read_config_word(dev, pos + PCI_MSI_FLAGS, &control);
 		control &= ~PCI_MSI_FLAGS_ENABLE;
@@ -83,11 +85,6 @@ static void __msi_set_enable(struct pci_dev *dev, int pos, int enable)
 	}
 }
 
-static void msi_set_enable(struct pci_dev *dev, int enable)
-{
-	__msi_set_enable(dev, pci_find_capability(dev, PCI_CAP_ID_MSI), enable);
-}
-
 static void msix_set_enable(struct pci_dev *dev, int enable)
 {
 	int pos;
-- 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux