Skip to contentSkip to conversation

Denys Dmytriyenko : eudev: immediately tell kernel that userspace FW loading failed

PATCH Arago Project git 1 participant 1 message Apr 30, 2016

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: master
Commit: 4b96409bccb7a674ab0cd0b31a540480bf13d2be
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=4b96409bccb7a674ab0cd0b31a540480bf13d2be
Author: Denys Dmytriyenko <[email protected]>
Date:   Sat Apr 30 04:14:51 2016 +0000

eudev: immediately tell kernel that userspace FW loading failed

---

 recipes-core/udev/eudev/firmware.rules |    3 +++
 recipes-core/udev/eudev_%.bbappend     |    7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
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/