From b36b9c7ba5016d03a24dc8cb76b423a149fa1c56 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Mon, 14 Nov 2022 20:38:38 +0800 Subject: [PATCH] fix USB_OTG_HPRT_PRES with USB_OTG_HPRT_PRST --- port/dwc2/usb_hc_dwc2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c index 098d274e..ef91f024 100644 --- a/port/dwc2/usb_hc_dwc2.c +++ b/port/dwc2/usb_hc_dwc2.c @@ -653,7 +653,7 @@ int usbh_roothub_control(struct usb_setup_packet *setup, uint8_t *buf) if (hprt0 & USB_OTG_HPRT_POCA) { status |= (1 << HUB_PORT_FEATURE_OVERCURRENT); } - if (hprt0 & USB_OTG_HPRT_PRES) { + if (hprt0 & USB_OTG_HPRT_PRST) { status |= (1 << HUB_PORT_FEATURE_RESET); } if (hprt0 & USB_OTG_HPRT_PPWR) {