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

Commit 8c1b45b6 authored by Lucille Sylvester's avatar Lucille Sylvester
Browse files

msm: kgsl: Make sure the bus is on to consider power enabled



In theory only reg reads/writes should be using this check, and
they don't need the bus.  But just in case, make sure it is on
before allowing any activity.

Change-Id: I660fb947ad16e2872cfb95a9d99200a197b37f31
Signed-off-by: default avatarLucille Sylvester <lsylvest@codeaurora.org>
parent 49110a93
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1323,7 +1323,8 @@ void kgsl_timer(unsigned long data)
bool kgsl_pwrctrl_isenabled(struct kgsl_device *device)
{
	struct kgsl_pwrctrl *pwr = &device->pwrctrl;
	return (test_bit(KGSL_PWRFLAGS_CLK_ON, &pwr->power_flags) != 0);
	return ((test_bit(KGSL_PWRFLAGS_CLK_ON, &pwr->power_flags) != 0) &&
		(test_bit(KGSL_PWRFLAGS_AXI_ON, &pwr->power_flags) != 0));
}

/**