You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/08 10:04:20 UTC

(nuttx) branch master updated: pci: msi and msix irq need release irq

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new fa5fef2b95 pci: msi and msix irq need release irq
fa5fef2b95 is described below

commit fa5fef2b95b32630890599182f19cd5e48464d77
Author: lipengfei28 <li...@xiaomi.com>
AuthorDate: Tue Oct 8 13:54:37 2024 +0800

    pci: msi and msix irq need release irq
    
    Signed-off-by: lipengfei28 <li...@xiaomi.com>
---
 drivers/pci/pci_ep_test.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/pci_ep_test.c b/drivers/pci/pci_ep_test.c
index b57d651565..9be69f2053 100644
--- a/drivers/pci/pci_ep_test.c
+++ b/drivers/pci/pci_ep_test.c
@@ -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;
 }