Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bed4cbb7 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "gadget: dwc: Support remote wakeup bit in GET_STATUS command in HS-USB mode" into msm-4.9

parents 3dbaf4c9 c7f53057
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -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;
@@ -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