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

Commit 0f4cc0cb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dwc3-msm: Add check before calling stop host in restart callback"

parents 6f524b37 653ce544
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4100,6 +4100,10 @@ static int dwc3_restart_usb_host_mode(struct notifier_block *nb,

	dbg_event(0xFF, "fw_restarthost", 0);
	flush_delayed_work(&mdwc->sm_work);

	if (!mdwc->in_host_mode)
		goto err;

	dbg_event(0xFF, "stop_host_mode", dwc->maximum_speed);
	ret = dwc3_otg_start_host(mdwc, 0);
	if (ret)