From 530c6708dd6f863e6ad91bc0e3433f887555999a Mon Sep 17 00:00:00 2001 From: Geurt Vos Date: Wed, 29 Jul 2026 12:00:59 +0200 Subject: [PATCH] also added rp2usb_deinit() call to hcd_deinit() --- src/portable/raspberrypi/rp2040/hcd_rp2040.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/portable/raspberrypi/rp2040/hcd_rp2040.c b/src/portable/raspberrypi/rp2040/hcd_rp2040.c index 28dc7f93c..a04890835 100644 --- a/src/portable/raspberrypi/rp2040/hcd_rp2040.c +++ b/src/portable/raspberrypi/rp2040/hcd_rp2040.c @@ -427,6 +427,10 @@ bool hcd_deinit(uint8_t rhport) { irq_remove_handler(USBCTRL_IRQ, hcd_rp2040_irq); reset_block(RESETS_RESET_USBCTRL_BITS); unreset_block_wait(RESETS_RESET_USBCTRL_BITS); + + // Release allocated resources + rp2usb_deinit(); + return true; }