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

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

Merge "usb: dwc3: Set core clk rate to default upon device remove notification" into msm-4.9

parents b2a55a83 6f504dca
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3221,6 +3221,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;
		}
	}