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

Commit d4b3268d authored by Pankaj Gupta's avatar Pankaj Gupta Committed by Jordan Crouse
Browse files

msm: kgsl: Return correctly from gmu_core_dev_wait_for_lowest_idle



Return value from a6xx_gmu_wait_for_lowest_idle is not
handled properly in its core function. Return correctly
from core function to handle error properly.
This will help to trigger GMU_FAULT and collect gmu
snapshot from gmu_stop or adreno_stop in case of any
idle timeout.

Change-Id: Iedffac031d11bf8eebadfcb10857c4e99142037f
Signed-off-by: default avatarPankaj Gupta <gpankaj@codeaurora.org>
parent ea019256
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ int gmu_core_dev_wait_for_lowest_idle(struct kgsl_device *device)
	struct gmu_dev_ops *ops = GMU_DEVICE_OPS(device);

	if (ops && ops->wait_for_lowest_idle)
		ops->wait_for_lowest_idle(device);
		return ops->wait_for_lowest_idle(device);

	return 0;
}