LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH linux-next] arm64: PCI: Introduce pcibios_free_irq() helper function
@ 2021-08-25  7:16 Yajun Deng
  2021-08-25 10:05 ` Will Deacon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yajun Deng @ 2021-08-25  7:16 UTC (permalink / raw)
  To: catalin.marinas, will; +Cc: linux-arm-kernel, linux-kernel, Yajun Deng

Introduce pcibios_free_irq() to free irq in pci_device_probe() and
pci_device_remove() that in drivers/pci/pci-driver.c.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
---
 arch/arm64/kernel/pci.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c
index 1006ed2d7c60..40da5aff4548 100644
--- a/arch/arm64/kernel/pci.c
+++ b/arch/arm64/kernel/pci.c
@@ -25,10 +25,18 @@
 int pcibios_alloc_irq(struct pci_dev *dev)
 {
 	if (!acpi_disabled)
-		acpi_pci_irq_enable(dev);
+		return acpi_pci_irq_enable(dev);
 
 	return 0;
 }
+
+void pcibios_free_irq(struct pci_dev *dev)
+{
+	if (!acpi_disabled)
+		acpi_pci_irq_disable(dev);
+
+}
+
 #endif
 
 /*
-- 
2.32.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-25 13:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25  7:16 [PATCH linux-next] arm64: PCI: Introduce pcibios_free_irq() helper function Yajun Deng
2021-08-25 10:05 ` Will Deacon
2021-08-25 10:49 ` yajun.deng
2021-08-25 13:30 ` Lorenzo Pieralisi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).