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

Commit 635035a4 authored by Sowmya Pandiri's avatar Sowmya Pandiri
Browse files

msm: vidc: Defer suspend till Venus goes to power collapse



Since Venus doesn't support run time power collapse, defer
it till Venus goes to normal power collapse.

Change-Id: Ieee23026cdaab58c00be8ba127f8b019ff383998
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
Signed-off-by: default avatarSowmya Pandiri <spandiri@codeaurora.org>
parent 66f4f85a
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1352,12 +1352,15 @@ static int venus_hfi_suspend(void *dev)
	mutex_lock(&device->lock);

	if (device->power_enabled) {
		rc = flush_delayed_work(&venus_hfi_pm_work);
		dprintk(VIDC_INFO, "%s flush delayed work %d\n", __func__, rc);
		dprintk(VIDC_DBG, "Venus is busy\n");
		rc = -EBUSY;
	} else {
		dprintk(VIDC_DBG, "Venus is power suspended\n");
		rc = 0;
	}

	mutex_unlock(&device->lock);
	return 0;
	return rc;
}

static enum hal_default_properties venus_hfi_get_default_properties(void *dev)