summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2021-08-25 12:29:54 -0400
committerMike Pagano <mpagano@gentoo.org>2021-08-25 12:29:54 -0400
commitcdbe54e1de55e1964a5dc2df7feefdf4ade7cdae (patch)
tree6930f41b0ef24d4bc6ad71fadf969a622f4158c0
parentChange CONFIG_GENTOO_PRINT_FIRMWARE_INFO to y (diff)
downloadlinux-patches-cdbe54e1de55e1964a5dc2df7feefdf4ade7cdae.tar.gz
linux-patches-cdbe54e1de55e1964a5dc2df7feefdf4ade7cdae.tar.bz2
linux-patches-cdbe54e1de55e1964a5dc2df7feefdf4ade7cdae.zip
Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO5.14-1
Thanks to Georgy Yakovlev Signed-off-by: Mike Pagano <mpagano@gentoo.org>
-rw-r--r--0000_README4
-rw-r--r--3000_Support-printing-firmware-info.patch14
2 files changed, 18 insertions, 0 deletions
diff --git a/0000_README b/0000_README
index d9af6956..2619131d 100644
--- a/0000_README
+++ b/0000_README
@@ -63,6 +63,10 @@ Patch: 2920_sign-file-patch-for-libressl.patch
From: https://bugs.gentoo.org/717166
Desc: sign-file: full functionality with modern LibreSSL
+Patch: 3000_Support-printing-firmware-info.patch
+From: https://bugs.gentoo.org/732852
+Desc: Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO). Thanks to Georgy Yakovlev
+
Patch: 4567_distro-Gentoo-Kconfig.patch
From: Tom Wijsman <TomWij@gentoo.org>
Desc: Add Gentoo Linux support config settings and defaults.
diff --git a/3000_Support-printing-firmware-info.patch b/3000_Support-printing-firmware-info.patch
new file mode 100644
index 00000000..a630cfbe
--- /dev/null
+++ b/3000_Support-printing-firmware-info.patch
@@ -0,0 +1,14 @@
+--- a/drivers/base/firmware_loader/main.c 2021-08-24 15:42:07.025482085 -0400
++++ b/drivers/base/firmware_loader/main.c 2021-08-24 15:44:40.782975313 -0400
+@@ -809,6 +809,11 @@ _request_firmware(const struct firmware
+
+ ret = _request_firmware_prepare(&fw, name, device, buf, size,
+ offset, opt_flags);
++
++#ifdef CONFIG_GENTOO_PRINT_FIRMWARE_INFO
++ printk(KERN_NOTICE "Loading firmware: %s\n", name);
++#endif
++
+ if (ret <= 0) /* error or already assigned */
+ goto out;
+