Loading drivers/usb/dwc3/ep0.c +6 −0 Original line number Original line Diff line number Diff line Loading @@ -366,6 +366,9 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc, usb_status |= 1 << USB_DEV_STAT_U1_ENABLED; usb_status |= 1 << USB_DEV_STAT_U1_ENABLED; if (reg & DWC3_DCTL_INITU2ENA) if (reg & DWC3_DCTL_INITU2ENA) usb_status |= 1 << USB_DEV_STAT_U2_ENABLED; usb_status |= 1 << USB_DEV_STAT_U2_ENABLED; } else { usb_status |= dwc->gadget.remote_wakeup << USB_DEVICE_REMOTE_WAKEUP; } } break; break; Loading Loading @@ -422,6 +425,9 @@ static int dwc3_ep0_handle_feature(struct dwc3 *dwc, switch (wValue) { switch (wValue) { case USB_DEVICE_REMOTE_WAKEUP: case USB_DEVICE_REMOTE_WAKEUP: pr_debug("%s(): remote wakeup :%s\n", __func__, (set ? "enabled" : "disabled")); dwc->gadget.remote_wakeup = set; break; break; /* /* * 9.4.1 says only only for SS, in AddressState only for * 9.4.1 says only only for SS, in AddressState only for Loading Loading
drivers/usb/dwc3/ep0.c +6 −0 Original line number Original line Diff line number Diff line Loading @@ -366,6 +366,9 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc, usb_status |= 1 << USB_DEV_STAT_U1_ENABLED; usb_status |= 1 << USB_DEV_STAT_U1_ENABLED; if (reg & DWC3_DCTL_INITU2ENA) if (reg & DWC3_DCTL_INITU2ENA) usb_status |= 1 << USB_DEV_STAT_U2_ENABLED; usb_status |= 1 << USB_DEV_STAT_U2_ENABLED; } else { usb_status |= dwc->gadget.remote_wakeup << USB_DEVICE_REMOTE_WAKEUP; } } break; break; Loading Loading @@ -422,6 +425,9 @@ static int dwc3_ep0_handle_feature(struct dwc3 *dwc, switch (wValue) { switch (wValue) { case USB_DEVICE_REMOTE_WAKEUP: case USB_DEVICE_REMOTE_WAKEUP: pr_debug("%s(): remote wakeup :%s\n", __func__, (set ? "enabled" : "disabled")); dwc->gadget.remote_wakeup = set; break; break; /* /* * 9.4.1 says only only for SS, in AddressState only for * 9.4.1 says only only for SS, in AddressState only for Loading