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

Commit b6194941 authored by Lucille Sylvester's avatar Lucille Sylvester
Browse files

msm: kgsl: devfreq_target requests can happen during SLUMBER



Bus updates should be ignored if the bus is already off.  The bus
will wake at the default frequency for the active power level.

Change-Id: I63b8d1aacfe45971929f21f7c63bdd8ba16536e1
Signed-off-by: default avatarLucille Sylvester <lsylvest@codeaurora.org>
parent 0022c0fa
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -130,6 +130,9 @@ void kgsl_pwrctrl_buslevel_update(struct kgsl_device *device,
	int buslevel = 0;
	int buslevel = 0;
	if (!pwr->pcl)
	if (!pwr->pcl)
		return;
		return;
	/* the bus should be ON to update the active frequency */
	if (on && !(test_bit(KGSL_PWRFLAGS_AXI_ON, &pwr->power_flags)))
		return;
	/*
	/*
	 * If the bus should remain on calculate our request and submit it,
	 * If the bus should remain on calculate our request and submit it,
	 * otherwise request bus level 0, off.
	 * otherwise request bus level 0, off.
@@ -173,7 +176,6 @@ void kgsl_pwrctrl_pwrlevel_change(struct kgsl_device *device,
	pwr->bus_mod = 0;
	pwr->bus_mod = 0;
	pwrlevel = &pwr->pwrlevels[pwr->active_pwrlevel];
	pwrlevel = &pwr->pwrlevels[pwr->active_pwrlevel];


	if (test_bit(KGSL_PWRFLAGS_AXI_ON, &pwr->power_flags))
	kgsl_pwrctrl_buslevel_update(device, true);
	kgsl_pwrctrl_buslevel_update(device, true);


	if (test_bit(KGSL_PWRFLAGS_CLK_ON, &pwr->power_flags) ||
	if (test_bit(KGSL_PWRFLAGS_CLK_ON, &pwr->power_flags) ||