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

Commit 45a3c37f authored by Runmin Wang's avatar Runmin Wang
Browse files

firmware_class: Add a debug print for timeout



User space helper could be blocked, and kernel would timeout while
waiting for the helper to complete its job. Add a debug print to clearly
identify this case.

Change-Id: I27183b8813cb5b707cc7bb5c208768c820a7301e
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent ad16cf89
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1066,6 +1066,8 @@ static int _request_firmware_load(struct firmware_priv *fw_priv,

	retval = fw_state_wait_timeout(&buf->fw_st, timeout);
	if (retval < 0) {
		dev_err(f_dev, "%s: firmware state wait timeout: rc = %d\n",
				__func__, retval);
		mutex_lock(&fw_lock);
		fw_load_abort(fw_priv);
		mutex_unlock(&fw_lock);