mirror of
https://github.com/apache/nuttx.git
synced 2026-03-27 02:29:15 +08:00
pci: msi and msix irq need release irq
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
@@ -540,7 +540,11 @@ static bool pci_ep_test_free_irq(FAR struct pci_ep_test_s *test)
|
||||
{
|
||||
up_disable_irq(test->irq);
|
||||
irq_detach(test->irq);
|
||||
pci_release_irq(test->pdev, &test->irq, 1);
|
||||
if (test->irq_type != PCI_EP_TEST_IRQ_TYPE_LEGACY)
|
||||
{
|
||||
pci_release_irq(test->pdev, &test->irq, 1);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user