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: Pankaj Gupta <[email protected]>
This commit is contained in:
Pankaj Gupta 2019-11-20 16:31:01 +05:30 • committed by Jordan Crouse
commit d4b3268d66

View file

@ -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;
}