summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-07-28 14:18:18 +0800
committersakumisu <[email protected]>2025-07-28 14:18:18 +0800
commit3b04facd09727d46cb91515615b4b0ebf98560bb (patch)
tree2aa52164a7194dc2f33f7d8acbd9834d33759808
parent8dd3106e626df9c1eafb750308dabfad05ccdffb (diff)
revert: revert 1a68d94c some changes
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--port/dwc2/usb_hc_dwc2.c1
-rw-r--r--port/ehci/usb_hc_ehci.c2
2 files changed, 1 insertions, 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;