[meta-ti] [PATCH] eudev: immediately tell kernel that userspace FW loading failed
Denys Dmytriyenko
denis at denix.org
Fri Apr 29 15:14:51 PDT 2016
From: Denys Dmytriyenko <denys at ti.com>
Signed-off-by: Denys Dmytriyenko <denys at ti.com>
---
recipes-core/udev/eudev/firmware.rules | 3 +++
recipes-core/udev/eudev_%.bbappend | 7 +++++--
2 files changed, 8 insertions(+), 2 deletions(-)
create mode 100644 recipes-core/udev/eudev/firmware.rules
diff --git a/recipes-core/udev/eudev/firmware.rules b/recipes-core/udev/eudev/firmware.rules
new file mode 100644
index 0000000..f7a08ce
--- /dev/null
+++ b/recipes-core/udev/eudev/firmware.rules
@@ -0,0 +1,3 @@
+# stub for immediately telling the kernel that userspace firmware loading
+# failed; necessary to avoid long timeouts with CONFIG_FW_LOADER_USER_HELPER=y
+SUBSYSTEM=="firmware", ACTION=="add", ATTR{loading}="-1"
diff --git a/recipes-core/udev/eudev_%.bbappend b/recipes-core/udev/eudev_%.bbappend
index a23d015..54cbf84 100644
--- a/recipes-core/udev/eudev_%.bbappend
+++ b/recipes-core/udev/eudev_%.bbappend
@@ -1,8 +1,11 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-SRC_URI_append = " file://omap-tty.rules"
+SRC_URI_append = " \
+ file://omap-tty.rules \
+ file://firmware.rules \
+"
-PR_append = ".1"
+PR_append = ".2"
install_omap_rules() {
install -m 0644 ${WORKDIR}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/
--
2.2.0
More information about the meta-ti
mailing list