From mboxrd@z Thu Jan 1 00:00:00 1970 From: 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> References: <20180511162028.20616-1-brgl@bgdev.pl> Return-path: In-Reply-To: <20180511162028.20616-1-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arch@vger.kernel.org, Bartosz Golaszewski List-Id: linux-arch.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 --- 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) -- 2.17.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:33141 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752151AbeEKQVi (ORCPT ); Fri, 11 May 2018 12:21:38 -0400 Received: by mail-wr0-f194.google.com with SMTP id o4-v6so5916874wrm.0 for ; Fri, 11 May 2018 09:21:37 -0700 (PDT) From: 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> In-Reply-To: <20180511162028.20616-1-brgl@bgdev.pl> References: <20180511162028.20616-1-brgl@bgdev.pl> Sender: linux-arch-owner@vger.kernel.org List-ID: 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 Message-ID: <20180511162022.Al3I85uznK5GVzKbkYfV5WXlw4U8whdqTd2673LjHJQ@z> 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 --- 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) -- 2.17.0