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

Commit 34a21f69 authored by Kyle Piefer's avatar Kyle Piefer
Browse files

msm: kgsl: Do not use legacy resource control when GMU is enabled



If there is a GMU device and it is enabled, either the
GMU firmware or the GMU driver will control the clocks,
regulators, and bus vote. Bypass legacy code that does this.

CRs-Fixed: 2017390
Change-Id: Ia171e6c3c9adfb811e93bda8919819c65cb79283
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent 7574ff02
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1676,6 +1676,8 @@ static void kgsl_pwrctrl_clk(struct kgsl_device *device, int state,
	struct kgsl_pwrctrl *pwr = &device->pwrctrl;
	int i = 0;

	if (kgsl_gmu_isenabled(device))
		return;
	if (test_bit(KGSL_PWRFLAGS_CLK_ON, &pwr->ctrl_flags))
		return;

@@ -1785,6 +1787,8 @@ static void kgsl_pwrctrl_axi(struct kgsl_device *device, int state)
{
	struct kgsl_pwrctrl *pwr = &device->pwrctrl;

	if (kgsl_gmu_isenabled(device))
		return;
	if (test_bit(KGSL_PWRFLAGS_AXI_ON, &pwr->ctrl_flags))
		return;

@@ -1851,6 +1855,8 @@ static int kgsl_pwrctrl_pwrrail(struct kgsl_device *device, int state)
	struct kgsl_pwrctrl *pwr = &device->pwrctrl;
	int status = 0;

	if (kgsl_gmu_isenabled(device))
		return 0;
	if (test_bit(KGSL_PWRFLAGS_POWER_ON, &pwr->ctrl_flags))
		return 0;