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

Commit 25d0286a authored by Mayank Rana's avatar Mayank Rana
Browse files

dwc3-msm: Don't override USB speed with EUD based spoof connect/detach



EUD may be used concurrently with USB Superspeed, however the EUD
notification handler currently overrides USB speed as high speed.
As a result, dwc3_msm_suspend() would incorrectly skip suspending
SS PHY. Fix this issue by removing USB speed override functionality
with EUD notification handler.

Change-Id: I8dd7e241edfaafbc16745536a88d4b4cbdf71864
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 48c0b07e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2857,8 +2857,7 @@ static int dwc3_msm_vbus_notifier(struct notifier_block *nb,
}

/*
 * Handle EUD based soft detach/attach event, and force USB high speed mode
 * functionality on receiving soft attach event.
 * Handle EUD based soft detach/attach event
 *
 * @nb - notifier handler
 * @event - event information i.e. soft detach/attach event
@@ -2877,9 +2876,6 @@ static int dwc3_msm_eud_notifier(struct notifier_block *nb,
	if (mdwc->vbus_active == event)
		return NOTIFY_DONE;

	/* Force USB High-Speed enumeration Only */
	dwc->maximum_speed = USB_SPEED_HIGH;
	dbg_event(0xFF, "Speed", dwc->maximum_speed);
	mdwc->vbus_active = event;
	if (dwc->is_drd && !mdwc->in_restart)
		queue_work(mdwc->dwc3_wq, &mdwc->resume_work);