Skip to contentSkip to conversation

eudev: immediately tell kernel that userspace FW loading failed

PATCH New Denys Dmytriyenko 1 participant 1 message Apr 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eudev: immediately tell kernel that userspace FW loading failed

From: Denys Dmytriyenko <[email protected]>

---
 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
recipes-core/udev/eudev/firmware.rules new file +3 -0
new file mode 100644
index 0000000..f7a08ce
@@ -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"
recipes-core/udev/eudev_%.bbappend +5 -2
index a23d015..54cbf84 100644
@@ -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/
Signature · 1 line
2.2.0