From patchwork Fri May 11 16:20:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 912069 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="hkSMYjuE"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40jFm0006Nz9ry1 for ; Sat, 12 May 2018 02:24:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752447AbeEKQYH (ORCPT ); Fri, 11 May 2018 12:24:07 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:40970 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752149AbeEKQVi (ORCPT ); Fri, 11 May 2018 12:21:38 -0400 Received: by mail-wr0-f194.google.com with SMTP id g21-v6so5875968wrb.8 for ; Fri, 11 May 2018 09:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2lR2Hngo1vckdDPkdUTYSzQzL1P/QA6cvAWWMpTb6dk=; b=hkSMYjuEBUosdKdIwLEZ2X4Mck1Gzg0RzepucZCmseFclTJZKZURrgQATRaeOVXKgw MS/NSIvwGn5l7PKh89dVOVYTw0FvJl2YxnH88O3ji+H3OYtgmfCiQl1F4o2dAMG3D6fz LFXDkGv5+eZ0sU2hzeMK52Zz2SQoQaBNwoeMSiY8A0VcBbZSGz9jwicWXaYAnxNB5k64 j/84s6KZYJUOmyNaNMu6Y6lBKymDYvoWzpHxKtCI579cG3YzuuKNzGE/aa+vrD/WISot L4NcLkf2uuBlWweJGHykwVuARh2V3GGIkcHtQd/50DLG9NHH0m/xi3V+HXE8eGmyoFIv 7Jpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2lR2Hngo1vckdDPkdUTYSzQzL1P/QA6cvAWWMpTb6dk=; b=pvuzErJiUWtB4cPvm6Yrk7P4nFx79fYGbAQ6eQdnl2na+35rj3wKoDlgrr2zLYrT/N 1RArQLL9T1LJWaMCTjxHqA3aoYOglYTlIi00ChN/BEVmyxJwvC44du63C9/RC7sf0n5s pbRKzoE59WoTwp6fmVolQX6PPsWQIGW0OO8g5qv31HB2VRAj2Rlf14yqpGIsFHyBhWl6 trI3jrWmMogSTnC/pKYonXOzRWUKB081XwWFmwvItY4ByrdfmLdDTCIioSGbP472qDwx i8aZPdWOgp3l5QLxUuR0X/C4diEwpbFLMH18ONz3IgR4AHRUH85/tEdUHQ1+RLVeQhry zOzQ== X-Gm-Message-State: ALKqPwcflI7kq3NfLx+a+W9kD0s1kaSVkf7dgQ0gLZy43138QWg6BASF GyinVMGmK/r2rFaLLffvb92Hbw== X-Google-Smtp-Source: AB8JxZoflVKessD47qxg4FfJa+PsiBty6n6onRgTPy870NJFsXY6MkuxZv62hIOjsXoN9/5dnC9Cgw== X-Received: by 2002:adf:adf0:: with SMTP id w103-v6mr5375261wrc.101.1526055697237; Fri, 11 May 2018 09:21:37 -0700 (PDT) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q17-v6sm1429523wmf.3.2018.05.11.09.21.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 May 2018 09:21:36 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , David Lechner , Michael Turquette , Stephen Boyd , Arnd Bergmann , Greg Kroah-Hartman , Mark Rutland , Yoshinori Sato , Rich Felker , Andy Shevchenko , Marc Zyngier , "Rafael J . Wysocki" , Peter Rosin , Jiri Slaby , Thomas Gleixner , Daniel Lezcano , Geert Uytterhoeven , Magnus Damm , Johan Hovold , Rob Herring , Frank Rowand Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arch@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 06/12] of: add a new flag for OF device nodes Date: Fri, 11 May 2018 18:20:22 +0200 Message-Id: <20180511162028.20616-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511162028.20616-1-brgl@bgdev.pl> References: <20180511162028.20616-1-brgl@bgdev.pl> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Bartosz Golaszewski This flag indicates that a device node has been populated early and that it needs different handling when called from of_platform_populate(). Signed-off-by: Bartosz Golaszewski Reviewed-by: Geert Uytterhoeven --- include/linux/of.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/of.h b/include/linux/of.h index 4d25e4f952d9..49ba6427c6b2 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -143,6 +143,7 @@ extern raw_spinlock_t devtree_lock; #define OF_DETACHED 2 /* node has been detached from the device tree */ #define OF_POPULATED 3 /* device already created for the node */ #define OF_POPULATED_BUS 4 /* of_platform_populate recursed to children of this node */ +#define OF_POPULATED_EARLY 5 /* device is already allocated */ #define OF_BAD_ADDR ((u64)-1)