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

Commit f9374cec authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Wait for pending irqs completion in gmu suspend"

parents f4493057 b35dc209
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -2840,6 +2840,7 @@ _aware(struct kgsl_device *device)
	case KGSL_STATE_RESET:
	case KGSL_STATE_RESET:
		if (!gmu_core_gpmu_isenabled(device))
		if (!gmu_core_gpmu_isenabled(device))
			break;
			break;
		kgsl_pwrctrl_irq(device, KGSL_PWRFLAGS_OFF);
		status = gmu_core_start(device);
		status = gmu_core_start(device);
		break;
		break;
	case KGSL_STATE_INIT:
	case KGSL_STATE_INIT:
@@ -2904,6 +2905,7 @@ _aware(struct kgsl_device *device)
				 * to make sure next attempt to wake up
				 * to make sure next attempt to wake up
				 * GMU/GPU is indeed a fresh start.
				 * GMU/GPU is indeed a fresh start.
				 */
				 */
				kgsl_pwrctrl_irq(device, KGSL_PWRFLAGS_OFF);
				gmu_core_suspend(device);
				gmu_core_suspend(device);
				kgsl_pwrctrl_set_state(device, state);
				kgsl_pwrctrl_set_state(device, state);
			} else {
			} else {