diff options
| -rw-r--r-- | port/dwc2/usb_hc_dwc2.c | 1 | ||||
| -rw-r--r-- | port/ehci/usb_hc_ehci.c | 2 |
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; |
