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

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

Merge "msm: kgsl: Do not use legacy resource control when GMU is enabled" into msm-4.9

parents 7c44f251 34a21f69
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;