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

Commit 5b0b2741 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: Defer suspend till Venus goes to power collapse"

parents 26123769 635035a4
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1359,12 +1359,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)