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

Commit c9668918 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 8bc46e39 0cc9c414
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3847,6 +3847,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)