pci: msi and msix irq need release irq

Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
lipengfei28
2024-10-08 13:54:37 +08:00
committed by Xiang Xiao
parent b0581b7a46
commit fa5fef2b95

View File

@@ -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;
}