From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartosz Golaszewski Subject: [PATCH 01/12] platform/early: add a new field to struct device Date: Fri, 11 May 2018 18:20:17 +0200 Message-ID: <20180511162028.20616-2-brgl@bgdev.pl> References: <20180511162028.20616-1-brgl@bgdev.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180511162028.20616-1-brgl@bgdev.pl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.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 , Rob Herring , Frank Rowand Cc: linux-arch@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski List-Id: linux-arch.vger.kernel.org From: Bartosz Golaszewski Add a new single-bit field to struct device which will be used to indicate that a device was probed early in the boot sequence. This does not affect the size of struct device on any architecture I built on (ARM, ARM64, x86_64). Signed-off-by: Bartosz Golaszewski --- include/linux/device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/device.h b/include/linux/device.h index 477956990f5e..bcff8b598b20 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -992,6 +992,7 @@ struct device { bool offline_disabled:1; bool offline:1; bool of_node_reused:1; + bool early:1; }; static inline struct device *kobj_to_dev(struct kobject *kobj) -- 2.17.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:33606 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752064AbeEKQV1 (ORCPT ); Fri, 11 May 2018 12:21:27 -0400 Received: by mail-wm0-f65.google.com with SMTP id x12-v6so3493737wmc.0 for ; Fri, 11 May 2018 09:21:27 -0700 (PDT) From: Bartosz Golaszewski Subject: [PATCH 01/12] platform/early: add a new field to struct device Date: Fri, 11 May 2018 18:20:17 +0200 Message-ID: <20180511162028.20616-2-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: <20180511162017.AtMpWgRpCi7V-pr0MsbuApvVN_qoUDqfWQvKJp2Coqk@z> From: Bartosz Golaszewski Add a new single-bit field to struct device which will be used to indicate that a device was probed early in the boot sequence. This does not affect the size of struct device on any architecture I built on (ARM, ARM64, x86_64). Signed-off-by: Bartosz Golaszewski --- include/linux/device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/device.h b/include/linux/device.h index 477956990f5e..bcff8b598b20 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -992,6 +992,7 @@ struct device { bool offline_disabled:1; bool offline:1; bool of_node_reused:1; + bool early:1; }; static inline struct device *kobj_to_dev(struct kobject *kobj) -- 2.17.0