From patchwork Wed Jun 25 16:19:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 32498 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C962220C88 for ; Wed, 25 Jun 2014 16:20:37 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id j17sf11935261oag.4 for ; Wed, 25 Jun 2014 09:20:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=vXYKkAZe29NqyXfWEa1OlrMKTX/zuf1YwKIfAoiBOd0=; b=kGr6T0EbldTXLdmyYFPmPQMksbsJzDg0j5yTBMkUPMFE1iUKfGDeAo2SXHMK2Zj/RZ Xr7MGbFtVldIcN1qfwzBm30KnljQfiG2myOUyJaNiBjRpzBmJSy8KI+gxeeQRA4j8Md1 W9DKGmNE5mSEplNz5NxYsoAtMCb70DZi0hL1JMBRzA+c2+TEqHrg9beijwh+V+aogPew RfYr/IGdo2flWW9EZtZljNxLQy8LwEna+9qeKTMHCgKnTrllknZbnabPlme3zJ8wHWTu 9uaB8oyuNQYugSr81FR9IDPRMaylygGmNN785i5G3f8VQHg8Xy9ZzUsP7iJaVVFcF+Kz us5A== X-Gm-Message-State: ALoCoQnUn79cLXjCSUgSldrhPqXYnAObNtPKKZccyxfwPaLHUpnIhJ9iMUz/p/415LxAlbDw8FXA X-Received: by 10.42.229.194 with SMTP id jj2mr4402446icb.18.1403713237338; Wed, 25 Jun 2014 09:20:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.11 with SMTP id n11ls2143229qge.11.gmail; Wed, 25 Jun 2014 09:20:37 -0700 (PDT) X-Received: by 10.52.34.46 with SMTP id w14mr1146765vdi.64.1403713237196; Wed, 25 Jun 2014 09:20:37 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id ta3si2608574vcb.76.2014.06.25.09.20.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Jun 2014 09:20:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hy4so2159188vcb.20 for ; Wed, 25 Jun 2014 09:20:37 -0700 (PDT) X-Received: by 10.220.44.141 with SMTP id a13mr1488256vcf.71.1403713236988; Wed, 25 Jun 2014 09:20:36 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp302265vcb; Wed, 25 Jun 2014 09:20:36 -0700 (PDT) X-Received: by 10.66.185.4 with SMTP id ey4mr13164755pac.126.1403713236025; Wed, 25 Jun 2014 09:20:36 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id qu8si5954188pbb.27.2014.06.25.09.20.35 for ; Wed, 25 Jun 2014 09:20:36 -0700 (PDT) Received-SPF: none (google.com: openembedded-core-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C977B6FE02; Wed, 25 Jun 2014 16:20:22 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from vms173019pub.verizon.net (vms173019pub.verizon.net [206.46.173.19]) by mail.openembedded.org (Postfix) with ESMTP id C795960424 for ; Wed, 25 Jun 2014 16:20:18 +0000 (UTC) Received: from gandalf.denix.org ([unknown] [71.191.205.189]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N7Q007JTG1ESD00@vms173019.mailsrvcs.net> for openembedded-core@lists.openembedded.org; Wed, 25 Jun 2014 11:20:03 -0500 (CDT) Received: from localhost.localdomain (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id B05432009B; Wed, 25 Jun 2014 12:20:02 -0400 (EDT) From: Denys Dmytriyenko To: openembedded-core@lists.openembedded.org Date: Wed, 25 Jun 2014 12:19:55 -0400 Message-id: <1403713196-22214-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 2.0.0 Cc: Denys Dmytriyenko Subject: [OE-core] [daisy][PATCH 1/2] udev: update init script for conditional probing of platform bus X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: denis@denix.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Denys Dmytriyenko 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. Signed-off-by: Denys Dmytriyenko Signed-off-by: Richard Purdie [Backport from OE-Core/master 70a695735e0a7d14448f2f5a9986bfe105210a91] Signed-off-by: Denys Dmytriyenko Acked-by: Otavio Salvador --- meta/recipes-core/udev/udev/init | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index 410a650..f2c84d5 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init @@ -102,7 +102,12 @@ case "$1" in udevadm control --env=STARTUP=1 if [ "$not_first_boot" != "" ];then - 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 + if [ "$PROBE_PLATFORM_BUS" != "yes" ]; then + PLATFORM_BUS_NOMATCH="--subsystem-nomatch=platform" + else + PLATFORM_BUS_NOMATCH="" + fi + 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 (udevadm settle --timeout=3; udevadm control --env=STARTUP=)& else udevadm trigger --action=add