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

Commit 05670e6b authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

msm: kgsl: Avoid cx gdsc off timeout if SMMU driver has a vote



Smmu driver keeps a vote on cx gdsc to block cx gdsc collapse
when CONFIG_ARM_SMMU_POWER_ALWAYS_ON is enabled. So don't bother
polling for cx gdsc collapse during the slumber sequence when this
config is enabled.

Change-Id: Iacbbfcc76600e0e567610265d5da87146946df66
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 3b06ec12
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -323,6 +323,9 @@ static bool __disable_cx_regulator_wait(struct regulator *reg,

	regulator_disable(reg);

	if (IS_ENABLED(CONFIG_ARM_SMMU_POWER_ALWAYS_ON))
		return true;

	for (;;) {
		if (adreno_is_a619_holi(adreno_dev))
			adreno_read_gmu_wrapper(adreno_dev,