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

Commit d9260aa2 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 always wait for 200ms in regulator disable check"

parents 099f8a09 a2ebb60d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2620,8 +2620,10 @@ static void adreno_regulator_disable_poll(struct kgsl_device *device)
			rail_on = 1;
			wait_time = jiffies + msecs_to_jiffies(200);
			while (!time_after(jiffies, wait_time)) {
				if (regulator_is_enabled(pwr->gpu_reg[i]) == 0)
				if (!regulator_is_enabled(pwr->gpu_reg[i])) {
					rail_on = 0;
					break;
				}
				cpu_relax();
			}
			if (rail_on)