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

Commit f62dfbb4 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: ensure venus is in power on before scaling clocks"

parents 3dbd8377 64e4cbf0
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1531,9 +1531,16 @@ static int venus_hfi_scale_clocks(void *dev, int load,
	}

	mutex_lock(&device->lock);

	if (__resume(device)) {
		dprintk(VIDC_ERR, "Resume from power collapse failed\n");
		rc = -ENODEV;
		goto exit;
	}

	rc = __scale_clocks(device, load, data, instant_bitrate);
exit:
	mutex_unlock(&device->lock);

	return rc;
}