mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
ASoC: wm_adsp: Firmware search progress log should not look like an error
In wm_adsp_request_firmware_file() only log the "Failed to request FILENAME" message when there is a real error (not when the file is missing). Add a new debug message to log the sequence of filenames tried during the file search. People have enabled debug messages, seen the "Failed to request" messages that are only logging the normal file search sequence, and reported them as errors. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://patch.msgid.link/20260910121047.1592541-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
fd73f4a665
commit
88c4aff394
|
|
@ -775,9 +775,12 @@ static int wm_adsp_request_firmware_file(struct wm_adsp *dsp,
|
|||
s++;
|
||||
}
|
||||
|
||||
adsp_dbg(dsp, "Try '%s'\n", fw->filename);
|
||||
ret = wm_adsp_firmware_request(&fw->firmware, fw->filename, cs_dsp->dev);
|
||||
if (ret < 0) {
|
||||
adsp_dbg(dsp, "Failed to request '%s': %d\n", fw->filename, ret);
|
||||
if (ret != -ENOENT)
|
||||
adsp_dbg(dsp, "Failed to request '%s': %d\n", fw->filename, ret);
|
||||
|
||||
kfree(fw->filename);
|
||||
fw->filename = NULL;
|
||||
if (ret != -ENOENT)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user