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

Commit 098d246f authored by Deepak Katragadda's avatar Deepak Katragadda Committed by David Keitel
Browse files

firmware_class: Change print levels for some warnings



Currently, when _request_firmware() fails to find the firmware
from the default /lib location, a couple of error messages are
printed denoting the same. Change the print level for these
messages from dev_warn to dev_dbg as it is fairly common to
have the user-space helper loading the firmware for us.

Change-Id: I5e06b3785f58e85eda45d32130b9acbc75cd2c0a
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
[vmulukut: adjusted for upstream changes]
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 9543a56f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1326,11 +1326,11 @@ static int _request_firmware(struct fw_desc *desc)
					 desc->dest_addr, desc->dest_size);
	if (ret) {
		if (!(desc->opt_flags & FW_OPT_NO_WARN))
			dev_warn(desc->device,
			dev_dbg(desc->device,
				 "Direct firmware load for %s failed with error %d\n",
				 desc->name, ret);
		if (desc->opt_flags & FW_OPT_USERHELPER) {
			dev_warn(desc->device, "Falling back to user helper\n");
			dev_dbg(desc->device, "Falling back to user helper\n");
			ret = fw_load_from_user_helper(fw, desc, timeout);
		}
	}