stm32h7: use nvic_disable_irq_sync for usb interrupt

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit c9d468d9248f12a9b7f6ae14d17fd2adb1825040
Author: Aidan MacDonald <[email protected]>
Date:   Tue Feb 17 09:57:46 2026 +0000

    stm32h7: use nvic_disable_irq_sync for usb interrupt
    
    Change-Id: I583b860f4b1696d4be84b0bf858a8b857d891aea

diff --git a/firmware/target/arm/stm32/usb-stm32h7.c b/firmware/target/arm/stm32/usb-stm32h7.c
index 94611c3940..983389b54c 100644
--- a/firmware/target/arm/stm32/usb-stm32h7.c
+++ b/firmware/target/arm/stm32/usb-stm32h7.c
@@ -172,8 +172,7 @@ void usb_dw_target_enable_irq(void)
 
 void usb_dw_target_disable_irq(void)
 {
-    nvic_disable_irq(IRQN_USB);
-    arm_dsb();
+    nvic_disable_irq_sync(IRQN_USB);
 }
 
 void usb_dw_target_clear_irq(void)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.