Skip to contentSkip to conversation

hw/pci: Remove unused pci_irq_pulse() method

PATCH In review Philippe Mathieu-Daudé 2 participants 2 messages Nov 22, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/pci: Remove unused pci_irq_pulse() method

Last use of pci_irq_pulse() was removed 7 years ago in commit 5e9aa92eb1 ("hw/block: Fix pin-based interrupt behaviour of NVMe").

---
 include/hw/pci/pci.h | 10 ----------
 1 file changed, 10 deletions(-)
include/hw/pci/pci.h +0 -10
index 135695c551..c0717e3121 100644
@@ -670,16 +670,6 @@ static inline void pci_irq_deassert(PCIDevice *pci_dev)
     pci_set_irq(pci_dev, 0);
 }
 
-/*
- * FIXME: PCI does not work this way.
- * All the callers to this method should be fixed.
- */
-static inline void pci_irq_pulse(PCIDevice *pci_dev)
-{
-    pci_irq_assert(pci_dev);
-    pci_irq_deassert(pci_dev);
-}
-
 MSIMessage pci_get_msi_message(PCIDevice *dev, int vector);
 void pci_set_power(PCIDevice *pci_dev, bool state);
 
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Philippe Mathieu-Daudé

Last use of pci_irq_pulse() was removed 7 years ago in commit 5e9aa92eb1 ("hw/block: Fix pin-based interrupt behaviour of NVMe").

---
  include/hw/pci/pci.h | 10 ----------
  1 file changed, 10 deletions(-)
include/hw/pci/pci.h +0 -3
index 135695c551..c0717e3121 100644
@@ -670,16 +670,6 @@ static inline void pci_irq_deassert(PCIDevice *pci_dev)
      pci_set_irq(pci_dev, 0);
  }
 
-/*
- * FIXME: PCI does not work this way.
- * All the callers to this method should be fixed.

include/hw/pci/pci.h static inline void pci_irq_deassert(PCIDevice *pci_dev) · line 675

Quoted 10 lines
include/hw/pci/pci.h +0 -7
- */
-static inline void pci_irq_pulse(PCIDevice *pci_dev)
-{
-    pci_irq_assert(pci_dev);
-    pci_irq_deassert(pci_dev);
-}
-
  MSIMessage pci_get_msi_message(PCIDevice *dev, int vector);
  void pci_set_power(PCIDevice *pci_dev, bool state);