summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2014-06-19 18:53:22 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-25 13:51:48 +0100
commite508220e4115bc875cb36d10e8b3190054bb2c65 (patch)
treee3c4dc74a1b133d803fccc2796f963e63a1b7861 /meta
parent3da016249c40c17b46ea9bafce7e64477b61fcdf (diff)
downloadpoky-e508220e4115bc875cb36d10e8b3190054bb2c65.tar.gz
udev: update init script for conditional probing of platform bus
Make probing of "platform" bus conditional based on PROBE_PLATFORM_BUS variable from /etc/default/udev-cache on subsequent boots when udev cache is used. PROBE_PLATFORM_BUS has to be set to "yes" in order to force probing on every boot, otherwise it uses the old default behaviour of probing it just the first time. This is helpful on modern SoCs where most of the low level peripheral drivers are registered on the platform bus and need to be probed to load the necessary modules and enable the connected buses and subsystems. (From OE-Core rev: 70a695735e0a7d14448f2f5a9986bfe105210a91) Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/udev/udev/init7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 410a650bd1..f2c84d5d3e 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -102,7 +102,12 @@ case "$1" in
102 102
103 udevadm control --env=STARTUP=1 103 udevadm control --env=STARTUP=1
104 if [ "$not_first_boot" != "" ];then 104 if [ "$not_first_boot" != "" ];then
105 udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform 105 if [ "$PROBE_PLATFORM_BUS" != "yes" ]; then
106 PLATFORM_BUS_NOMATCH="--subsystem-nomatch=platform"
107 else
108 PLATFORM_BUS_NOMATCH=""
109 fi
110 udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux $PLATFORM_BUS_NOMATCH
106 (udevadm settle --timeout=3; udevadm control --env=STARTUP=)& 111 (udevadm settle --timeout=3; udevadm control --env=STARTUP=)&
107 else 112 else
108 udevadm trigger --action=add 113 udevadm trigger --action=add