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

Commit f7661399 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Fix power collapse issue" into msm-4.9

parents 7925c07e 79c2eb85
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -2883,9 +2883,17 @@ static void venus_hfi_pm_handler(struct work_struct *work)
				VIDC_WRAPPER_CPU_STATUS);
		idle_status = __read_register(device,
				VIDC_CPU_CS_SCIACMDARG0);
		if (!(wfi_status & BIT(0)) ||
		if (!(wfi_status & BIT(0))) {
			dprintk(VIDC_WARN,
				"Skipping PC as wfi_status (%#x) bit not set\n",
				wfi_status);
			goto skip_power_off;
		}
		if (device->res->sys_idle_indicator &&
			!(idle_status & BIT(30))) {
			dprintk(VIDC_WARN, "Skipping PC\n");
			dprintk(VIDC_WARN,
				"Skipping PC as idle_status (%#x) bit not set\n",
				idle_status);
			goto skip_power_off;
		}