From patchwork Thu Jun 19 22:53:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 32253 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6F30C206A0 for ; Thu, 19 Jun 2014 22:54:05 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id il7sf8916399vcb.8 for ; Thu, 19 Jun 2014 15:54:04 -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=gta6rw14qyMD2VNj+3myP10XXPABz5erRwDXl7V8JbY=; b=IvfAEw/7/NlM+PCdBGKw6uWFPGFtu6Bjs4UQ3r/zv9wfHm6DQ6B/6v88PgAH3WBz+w d5gOtPw/ceE3cdXEHmxf1yinS+qtD13CwOaYS+wxZRNM2wDxzE6xHRwy/LQux/zt57kT I9QFyKPRX5kzfKf7brjksh8Vebv8HI8bPsesQ5qM6gVGitbQyb7FuCcsF9DUJxte1Q3D xa1hUS1/drSiFba20/x5Q3R+/+E4WTG0JL2/0gTkYYhvoX7PGLweN9B9VFkW5skyX+Lc PGbzCz+65NiIY/7b0J3wOZIv8NHiV5Xs/ah9/7A7D1RmlCNA15W0FCzTIQiCLSMDXncO MyJA== X-Gm-Message-State: ALoCoQkhqUoFg8HsY8+lbq7+duNPTVlrI1TDfW5/J/Ymm3Ls7SY4oTxk+2Er5krMd6cW4hq46K16 X-Received: by 10.58.187.107 with SMTP id fr11mr3861845vec.34.1403218444872; Thu, 19 Jun 2014 15:54:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.100.208 with SMTP id s74ls761751qge.68.gmail; Thu, 19 Jun 2014 15:54:04 -0700 (PDT) X-Received: by 10.52.182.163 with SMTP id ef3mr5362184vdc.22.1403218444766; Thu, 19 Jun 2014 15:54:04 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id ul5si3080076veb.7.2014.06.19.15.54.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Jun 2014 15:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.182 as permitted sender) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id oy12so2961772veb.13 for ; Thu, 19 Jun 2014 15:54:04 -0700 (PDT) X-Received: by 10.52.184.164 with SMTP id ev4mr5287271vdc.15.1403218444441; Thu, 19 Jun 2014 15:54:04 -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.54.6 with SMTP id vs6csp397514vcb; Thu, 19 Jun 2014 15:54:04 -0700 (PDT) X-Received: by 10.66.66.108 with SMTP id e12mr9335953pat.35.1403218443680; Thu, 19 Jun 2014 15:54:03 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id zf6si7403596pab.226.2014.06.19.15.54.03 for ; Thu, 19 Jun 2014 15:54:03 -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 2297770235; Thu, 19 Jun 2014 22:53:54 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from vms173023pub.verizon.net (vms173023pub.verizon.net [206.46.173.23]) by mail.openembedded.org (Postfix) with ESMTP id A73CE6FED8 for ; Thu, 19 Jun 2014 22:53:50 +0000 (UTC) Received: from gandalf.denix.org ([unknown] [71.191.205.189]) by vms173023.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N7F00795U9CCP50@vms173023.mailsrvcs.net> for openembedded-core@lists.openembedded.org; Thu, 19 Jun 2014 17:53:52 -0500 (CDT) Received: from localhost.localdomain (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id 8B5D7200BF; Thu, 19 Jun 2014 18:53:36 -0400 (EDT) From: Denys Dmytriyenko To: openembedded-core@lists.openembedded.org Date: Thu, 19 Jun 2014 18:53:22 -0400 Message-id: <1403218403-3303-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 2.0.0 Cc: Denys Dmytriyenko Subject: [OE-core] [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.128.182 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 --- 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