1 |
commit: a6d2f668a35484d8afbf3bd7123b9ef349ae50dc |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 24 19:58:46 2021 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 24 19:58:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a6d2f668 |
7 |
|
8 |
Add suport for printing firmware info on load attempt |
9 |
|
10 |
This requires the kernel config parameter: |
11 |
|
12 |
CONFIG_GENTOO_PRINT_FIRMWARE_INFO |
13 |
|
14 |
located under the GENTOO_LINUX distro config options |
15 |
|
16 |
Thanks to Georgy Yakovlev |
17 |
|
18 |
Bug: https://bugs.gentoo.org/732852 |
19 |
|
20 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
21 |
|
22 |
0000_README | 4 ++++ |
23 |
3000_Support-printing-firmware-info.patch | 14 ++++++++++++++ |
24 |
2 files changed, 18 insertions(+) |
25 |
|
26 |
diff --git a/0000_README b/0000_README |
27 |
index eec200c..559bb12 100644 |
28 |
--- a/0000_README |
29 |
+++ b/0000_README |
30 |
@@ -115,6 +115,10 @@ Patch: 2920_sign-file-patch-for-libressl.patch |
31 |
From: https://bugs.gentoo.org/717166 |
32 |
Desc: sign-file: full functionality with modern LibreSSL |
33 |
|
34 |
+Patch: 3000_Support-printing-firmware-info.patch |
35 |
+From: https://bugs.gentoo.org/732852 |
36 |
+Desc: Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO). Thanks to Georgy Yakovlev |
37 |
+ |
38 |
Patch: 4567_distro-Gentoo-Kconfig.patch |
39 |
From: Tom Wijsman <TomWij@g.o> |
40 |
Desc: Add Gentoo Linux support config settings and defaults. |
41 |
|
42 |
diff --git a/3000_Support-printing-firmware-info.patch b/3000_Support-printing-firmware-info.patch |
43 |
new file mode 100644 |
44 |
index 0000000..a630cfb |
45 |
--- /dev/null |
46 |
+++ b/3000_Support-printing-firmware-info.patch |
47 |
@@ -0,0 +1,14 @@ |
48 |
+--- a/drivers/base/firmware_loader/main.c 2021-08-24 15:42:07.025482085 -0400 |
49 |
++++ b/drivers/base/firmware_loader/main.c 2021-08-24 15:44:40.782975313 -0400 |
50 |
+@@ -809,6 +809,11 @@ _request_firmware(const struct firmware |
51 |
+ |
52 |
+ ret = _request_firmware_prepare(&fw, name, device, buf, size, |
53 |
+ offset, opt_flags); |
54 |
++ |
55 |
++#ifdef CONFIG_GENTOO_PRINT_FIRMWARE_INFO |
56 |
++ printk(KERN_NOTICE "Loading firmware: %s\n", name); |
57 |
++#endif |
58 |
++ |
59 |
+ if (ret <= 0) /* error or already assigned */ |
60 |
+ goto out; |
61 |
+ |