From 3b04facd09727d46cb91515615b4b0ebf98560bb Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Mon, 28 Jul 2025 14:18:18 +0800 Subject: revert: revert 1a68d94c some changes Signed-off-by: sakumisu <1203593632@qq.com> --- port/dwc2/usb_hc_dwc2.c | 1 - port/ehci/usb_hc_ehci.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c index 2bc4a265..bf868e65 100644 --- a/port/dwc2/usb_hc_dwc2.c +++ b/port/dwc2/usb_hc_dwc2.c @@ -916,7 +916,6 @@ int usbh_roothub_control(struct usbh_bus *bus, struct usb_setup_packet *setup, u break; case HUB_PORT_FEATURE_RESET: return usbh_reset_port(bus, port); - break; default: return -USB_ERR_NOTSUPP; diff --git a/port/ehci/usb_hc_ehci.c b/port/ehci/usb_hc_ehci.c index ac00a6db..0991da6f 100644 --- a/port/ehci/usb_hc_ehci.c +++ b/port/ehci/usb_hc_ehci.c @@ -1123,7 +1123,7 @@ int usbh_roothub_control(struct usbh_bus *bus, struct usb_setup_packet *setup, u EHCI_HCOR->portsc[port - 1] |= EHCI_PORTSC_PP; break; case HUB_PORT_FEATURE_RESET: - return usbh_reset_port(bus, port); + usbh_reset_port(bus, port); #ifdef CONFIG_USB_EHCI_WITH_OHCI if (!(EHCI_HCOR->portsc[port - 1] & EHCI_PORTSC_PE)) { EHCI_HCOR->portsc[port - 1] |= EHCI_PORTSC_OWNER; -- cgit v1.3.1