summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorudoudou <[email protected]>2025-07-27 18:20:36 +0800
committersakumisu <[email protected]>2025-07-27 20:30:08 +0800
commit0986e8b5ec1eae0c91e0c67b24e1e1e87a1c9270 (patch)
tree94a95a1de46e74e7a98b2c48a299a8ce3382365e
parentae2a24642bb00f66268f6f6d423f69de902deec8 (diff)
Fix the bug that dwc2_halt may cause hardware abnormality
-rw-r--r--port/dwc2/usb_hc_dwc2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c
index f8de2d11..a0660198 100644
--- a/port/dwc2/usb_hc_dwc2.c
+++ b/port/dwc2/usb_hc_dwc2.c
@@ -352,7 +352,6 @@ static void dwc2_halt(struct usbh_bus *bus, uint8_t ch_num)
value = USB_OTG_HC(ch_num)->HCCHAR;
value |= USB_OTG_HCCHAR_CHDIS;
value |= USB_OTG_HCCHAR_CHENA;
- value &= ~USB_OTG_HCCHAR_EPDIR;
USB_OTG_HC(ch_num)->HCCHAR = value;
do {
if (++count > 200000U) {