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

Commit 5aac90f6 authored by George Shen's avatar George Shen
Browse files

msm: cvp: Avoid racing in cvp power control



SSR logic shall not dump CVP register if CVP
is being powered collapse.

Change-Id: I3da046e2734a883bbeea09c35b849899b22865da
Signed-off-by: default avatarGeorge Shen <sqiao@codeaurora.org>
parent 2a98f234
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1423,9 +1423,9 @@ static int iris_hfi_flush_debug_queue(void *dev)
		return -EINVAL;
	}

	cvp_dump_csr(device);
	mutex_lock(&device->lock);

	cvp_dump_csr(device);
	if (!device->power_enabled) {
		dprintk(CVP_WARN, "%s: iris power off\n", __func__);
		rc = -EINVAL;