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

Commit 4966b246 authored by Jilai Wang's avatar Jilai Wang
Browse files

msm: npu: Avoid to access NPU registers when power is off



NPU SSR could be triggered when NPU power is off, so SSR handler
should avoid to access NPU registers before NPU power is turned on.

Change-Id: I0ea1fcf1e025dccc4d85ec0f6f0e7184115c3db0
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent 78327398
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -809,10 +809,6 @@ static int host_error_hdlr(struct npu_device *npu_dev, bool force)
	}

	NPU_INFO("npu subsystem is restarting\n");

	/* clear FW_CTRL_STATUS register before restart */
	REGW(npu_dev, REG_NPU_FW_CTRL_STATUS, 0x0);

	reinit_completion(&host_ctx->npu_power_up_done);
	ret = subsystem_restart_dev(host_ctx->subsystem_handle);
	if (ret) {