aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/udev
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2016-04-30 04:14:51 +0000
committerDenys Dmytriyenko <denys@ti.com>2016-04-29 21:32:46 -0400
commit4b96409bccb7a674ab0cd0b31a540480bf13d2be (patch)
treee0c369428ebb4f5abce11325004955fee4710114 /recipes-core/udev
parentca43376a8c0868e356c709571257f47f011c715e (diff)
downloadmeta-ti-4b96409bccb7a674ab0cd0b31a540480bf13d2be.zip
meta-ti-4b96409bccb7a674ab0cd0b31a540480bf13d2be.tar.gz
meta-ti-4b96409bccb7a674ab0cd0b31a540480bf13d2be.tar.bz2
eudev: immediately tell kernel that userspace FW loading failed
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-core/udev')
-rw-r--r--recipes-core/udev/eudev/firmware.rules3
-rw-r--r--recipes-core/udev/eudev_%.bbappend7
2 files changed, 8 insertions, 2 deletions
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/