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

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

Merge "usb: dwc3: Set core clk rate to default upon device remove notification"

parents d171a06e 65719399
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3281,6 +3281,11 @@ static int dwc3_msm_host_notifier(struct notifier_block *nb,
			pval.intval = 0;
			power_supply_set_property(mdwc->usb_psy,
					POWER_SUPPLY_PROP_BOOST_CURRENT, &pval);

			/* set rate back to default core clk rate */
			clk_set_rate(mdwc->core_clk, mdwc->core_clk_rate);
			dev_dbg(mdwc->dev, "set core clk rate %ld\n",
				mdwc->core_clk_rate);
			mdwc->max_rh_port_speed = USB_SPEED_UNKNOWN;
		}
	}