Skip to content

Instantly share code, notes, and snippets.

@robbat2
Created September 19, 2019 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robbat2/17869389cfcb524a92835d784817f01a to your computer and use it in GitHub Desktop.
Save robbat2/17869389cfcb524a92835d784817f01a to your computer and use it in GitHub Desktop.
From 42d7d8dda81902ae31dfab8ab4215c2626765e11 Mon Sep 17 00:00:00 2001
From: "Robin H. Johnson" <robbat2@gentoo.org>
Date: Sun, 21 Jul 2019 16:33:31 +0000
Subject: [PATCH] firmware: log names of loaded firmware
It's non-trivial to figure out names of firmware that was actually
loaded, add a print statement at the end of _request_firmware that logs
the name & result of each firmware.
This is esp. valuable early in boot, before logging of UEVENT is
available.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
---
drivers/base/firmware_loader/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/base/firmware_loader/main.c b/drivers/base/firmware_loader/main.c
index bf44c79beae9..7d4e5893b8ef 100644
--- a/drivers/base/firmware_loader/main.c
+++ b/drivers/base/firmware_loader/main.c
@@ -791,6 +791,8 @@ _request_firmware(const struct firmware **firmware_p, const char *name,
fw = NULL;
}
+ dev_info(device, "_request_firmware %s ret=%d\n", name, ret);
+
*firmware_p = fw;
return ret;
}
--
2.23.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment