Thread (35 messages) read the whole thread 35 messages, 3 authors, 2019-07-19
STALE2568d

[RFC PATCH 30/30] misc: pci_endpoint_test: Enable legacy interrupt

From: Kishon Vijay Abraham I <hidden>
Date: 2019-06-04 13:20:24
Also in: linux-arm-kernel, linux-omap, linux-pci, linux-rockchip, lkml
Subsystem: char and misc drivers, pci endpoint subsystem, the rest · Maintainers: Arnd Bergmann, Greg Kroah-Hartman, Manivannan Sadhasivam, Krzysztof Wilczyński, Linus Torvalds

PCI core does not enable legacy interrupt if it finds MSI or MSIX interrupt.
Explicitly enable legacy interrupt here in order to perform legacy
interrupt tests.

Signed-off-by: Kishon Vijay Abraham I <redacted>
---
 drivers/misc/pci_endpoint_test.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c
index 2a6cd9e65e67..e12a3845ad2e 100644
--- a/drivers/misc/pci_endpoint_test.c
+++ b/drivers/misc/pci_endpoint_test.c
@@ -697,6 +697,7 @@ static int pci_endpoint_test_probe(struct pci_dev *pdev,
 	}
 
 	pci_set_master(pdev);
+	pci_intx(pdev, true);
 
 	if (!pci_endpoint_test_alloc_irq_vectors(test, irq_type))
 		goto err_disable_irq;
-- 
2.17.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help