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

Commit 27ad4651 authored by Jilai Wang's avatar Jilai Wang
Browse files

msm: npu: Show FW status register value if polling timed out



When polling for FW status timed out, print out status register value
to help check current FW state.

Change-Id: I12ab8602ddf3ff298b962693b684822ad7a80987
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent f762b1e5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -421,8 +421,8 @@ static int wait_for_status_ready(struct npu_device *npu_dev,
		msleep(NPU_FW_TIMEOUT_POLL_INTERVAL_MS);
		wait_cnt += NPU_FW_TIMEOUT_POLL_INTERVAL_MS;
		if (wait_cnt >= max_wait_ms) {
			pr_err("timeout wait for status %x in %s\n",
				status_bits, __func__);
			pr_err("timeout wait for status %x[%x] in reg %x\n",
				status_bits, ctrl_sts, status_reg);
			return -EPERM;
		}
	}