soc.lore.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/23] ARM: DT include cleanups
@ 2023-08-03 22:42 Rob Herring
  2023-08-03 22:42 ` [PATCH v2 01/23] ARM: l2x0: Add explicit includes for init and types Rob Herring
                   ` (24 more replies)
  0 siblings, 25 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm, Viresh Kumar, Thierry Reding

Arnd, This is all the remaining ARM and SoC related patches of DT 
include cleanups which have not be applied by sub-arch maintainers.

A few of these are v2, but most are just resends of v1.

Signed-off-by: Rob Herring <robh@kernel.org>
---
Rob Herring (23):
      ARM: l2x0: Add explicit includes for init and types
      ARM: sti: Drop unused includes
      ARM: alpine: Drop unused includes
      ARM: berlin: Drop unused includes
      ARM: dove: Drop unused includes
      ARM: hpe: Drop unused includes
      ARM: mmp: Drop unused includes
      ARM: nomadik: Drop unused includes
      ARM: npcm: Drop unused includes
      ARM: nspire: Drop unused includes
      ARM: pxa: Drop unused includes
      ARM: rockchip: Drop unused includes
      ARM: versatile: Drop unused includes
      ARM: mvebu: Explicitly include correct DT includes
      ARM: spear: Explicitly include correct DT includes
      bus: Explicitly include correct DT includes
      firmware: Explicitly include correct DT includes
      soc: aspeed: Explicitly include correct DT includes
      soc: mediatek: Explicitly include correct DT includes
      soc: rockchip: Explicitly include correct DT includes
      soc: sunxi: Explicitly include correct DT includes
      soc: xilinx: Explicitly include correct DT includes
      soc: fsl: Explicitly include correct DT includes

 arch/arm/include/asm/hardware/cache-l2x0.h |  2 ++
 arch/arm/mach-alpine/alpine_machine.c      |  2 --
 arch/arm/mach-berlin/berlin.c              |  5 -----
 arch/arm/mach-dove/common.c                |  2 --
 arch/arm/mach-hpe/gxp.c                    |  1 -
 arch/arm/mach-mmp/mmp-dt.c                 |  3 ---
 arch/arm/mach-mmp/mmp2-dt.c                |  4 ----
 arch/arm/mach-mmp/mmp3.c                   |  4 ----
 arch/arm/mach-mvebu/kirkwood.c             |  1 +
 arch/arm/mach-mvebu/pmsu.c                 |  2 +-
 arch/arm/mach-nomadik/cpu-8815.c           | 13 -------------
 arch/arm/mach-npcm/platsmp.c               |  3 ---
 arch/arm/mach-nspire/nspire.c              |  9 +--------
 arch/arm/mach-pxa/pxa-dt.c                 |  6 ------
 arch/arm/mach-rockchip/rockchip.c          |  6 +-----
 arch/arm/mach-spear/spear1340.c            |  2 +-
 arch/arm/mach-sti/board-dt.c               |  2 --
 arch/arm/mach-versatile/realview.c         |  2 --
 drivers/bus/fsl-mc/fsl-mc-bus.c            |  1 +
 drivers/bus/fsl-mc/fsl-mc-msi.c            |  2 --
 drivers/bus/hisi_lpc.c                     |  2 +-
 drivers/bus/omap_l3_smx.c                  |  1 -
 drivers/bus/simple-pm-bus.c                |  2 ++
 drivers/bus/sunxi-rsb.c                    |  2 +-
 drivers/bus/ti-pwmss.c                     |  2 +-
 drivers/firmware/arm_scmi/driver.c         |  4 ++--
 drivers/firmware/imx/imx-dsp.c             |  1 -
 drivers/firmware/imx/imx-scu-irq.c         |  1 +
 drivers/firmware/imx/imx-scu.c             |  1 +
 drivers/firmware/mtk-adsp-ipc.c            |  1 -
 drivers/firmware/raspberrypi.c             |  1 +
 drivers/firmware/scpi_pm_domain.c          |  3 ++-
 drivers/firmware/stratix10-rsu.c           |  1 -
 drivers/firmware/tegra/bpmp.c              |  3 +--
 drivers/firmware/xilinx/zynqmp.c           |  1 +
 drivers/soc/aspeed/aspeed-lpc-snoop.c      |  1 -
 drivers/soc/aspeed/aspeed-p2a-ctrl.c       |  2 +-
 drivers/soc/aspeed/aspeed-uart-routing.c   |  3 +--
 drivers/soc/fsl/dpaa2-console.c            |  3 ++-
 drivers/soc/fsl/qe/qe.c                    |  3 ++-
 drivers/soc/fsl/qe/qe_common.c             |  1 -
 drivers/soc/fsl/qe/qe_tdm.c                |  4 +---
 drivers/soc/mediatek/mtk-cmdq-helper.c     |  1 +
 drivers/soc/mediatek/mtk-devapc.c          |  2 +-
 drivers/soc/mediatek/mtk-mmsys.c           |  2 +-
 drivers/soc/mediatek/mtk-mutex.c           |  3 +--
 drivers/soc/mediatek/mtk-pmic-wrap.c       |  3 ++-
 drivers/soc/rockchip/grf.c                 |  2 +-
 drivers/soc/sunxi/sunxi_sram.c             |  2 +-
 drivers/soc/xilinx/zynqmp_power.c          |  1 +
 50 files changed, 38 insertions(+), 93 deletions(-)
---
base-commit: fb4327106e5250ee360d0d8b056c1eef7eeb9a98
change-id: 20230803-dt-header-cleanups-for-soc-cf95dbe606bd

Best regards,
-- 
Rob Herring <robh@kernel.org>


^ permalink raw reply	[flat|nested] 39+ messages in thread

* [PATCH v2 01/23] ARM: l2x0: Add explicit includes for init and types
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 02/23] ARM: sti: Drop unused includes Rob Herring
                   ` (23 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

The cache-l2x0.h header uses u32 type and the __init and __iomem
attributes, so it should have explicit includes for those.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/include/asm/hardware/cache-l2x0.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/include/asm/hardware/cache-l2x0.h b/arch/arm/include/asm/hardware/cache-l2x0.h
index a6d4ee86ba54..5a7ee70f561c 100644
--- a/arch/arm/include/asm/hardware/cache-l2x0.h
+++ b/arch/arm/include/asm/hardware/cache-l2x0.h
@@ -9,6 +9,8 @@
 #define __ASM_ARM_HARDWARE_L2X0_H
 
 #include <linux/errno.h>
+#include <linux/init.h>
+#include <linux/types.h>
 
 #define L2X0_CACHE_ID			0x000
 #define L2X0_CACHE_TYPE			0x004

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 02/23] ARM: sti: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
  2023-08-03 22:42 ` [PATCH v2 01/23] ARM: l2x0: Add explicit includes for init and types Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-04 15:02   ` Patrice CHOTARD
  2023-08-03 22:42 ` [PATCH v2 03/23] ARM: alpine: " Rob Herring
                   ` (22 subsequent siblings)
  24 siblings, 1 reply; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-sti/board-dt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/mach-sti/board-dt.c b/arch/arm/mach-sti/board-dt.c
index ffecbf29646f..488084b61b4a 100644
--- a/arch/arm/mach-sti/board-dt.c
+++ b/arch/arm/mach-sti/board-dt.c
@@ -4,8 +4,6 @@
  * Author(s): Srinivas Kandagatla <srinivas.kandagatla@st.com>
  */
 
-#include <linux/irq.h>
-#include <linux/of_platform.h>
 #include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 03/23] ARM: alpine: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
  2023-08-03 22:42 ` [PATCH v2 01/23] ARM: l2x0: Add explicit includes for init and types Rob Herring
  2023-08-03 22:42 ` [PATCH v2 02/23] ARM: sti: Drop unused includes Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 04/23] ARM: berlin: " Rob Herring
                   ` (21 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

of_platform.h is not needed, drop it.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-alpine/alpine_machine.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/mach-alpine/alpine_machine.c b/arch/arm/mach-alpine/alpine_machine.c
index d256a99e9b99..bc491bbbabf8 100644
--- a/arch/arm/mach-alpine/alpine_machine.c
+++ b/arch/arm/mach-alpine/alpine_machine.c
@@ -5,8 +5,6 @@
  * Copyright (C) 2015 Annapurna Labs Ltd.
  */
 
-#include <linux/of_platform.h>
-
 #include <asm/mach/arch.h>
 
 static const char * const al_match[] __initconst = {

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 04/23] ARM: berlin: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (2 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 03/23] ARM: alpine: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-06  9:26   ` Jisheng Zhang
  2023-08-03 22:42 ` [PATCH v2 05/23] ARM: dove: " Rob Herring
                   ` (20 subsequent siblings)
  24 siblings, 1 reply; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-berlin/berlin.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/arm/mach-berlin/berlin.c b/arch/arm/mach-berlin/berlin.c
index 2424ad40190c..13d5c899f09e 100644
--- a/arch/arm/mach-berlin/berlin.c
+++ b/arch/arm/mach-berlin/berlin.c
@@ -8,11 +8,6 @@
  *  (c) Marvell International Ltd.
  */
 
-#include <linux/init.h>
-#include <linux/io.h>
-#include <linux/kernel.h>
-#include <linux/of_platform.h>
-#include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 
 static const char * const berlin_dt_compat[] = {

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 05/23] ARM: dove: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (3 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 04/23] ARM: berlin: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 06/23] ARM: hpe: " Rob Herring
                   ` (19 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-dove/common.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c
index cd4ae7e4768d..3aea90bbb41a 100644
--- a/arch/arm/mach-dove/common.c
+++ b/arch/arm/mach-dove/common.c
@@ -9,8 +9,6 @@
 #include <linux/dma-mapping.h>
 #include <linux/init.h>
 #include <linux/io.h>
-#include <linux/of.h>
-#include <linux/of_platform.h>
 #include <linux/platform_data/dma-mv_xor.h>
 #include <linux/platform_data/usb-ehci-orion.h>
 #include <linux/platform_device.h>

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 06/23] ARM: hpe: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (4 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 05/23] ARM: dove: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 07/23] ARM: mmp: " Rob Herring
                   ` (18 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

of_platform.h is not needed, so drop it.

Acked-by: Nick Hawkins <nick.hawkins@hpe.com>
Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-hpe/gxp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/mach-hpe/gxp.c b/arch/arm/mach-hpe/gxp.c
index ef3341373006..581c8da517b8 100644
--- a/arch/arm/mach-hpe/gxp.c
+++ b/arch/arm/mach-hpe/gxp.c
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (C) 2022 Hewlett-Packard Enterprise Development Company, L.P. */
 
-#include <linux/of_platform.h>
 #include <asm/mach/arch.h>
 
 static const char * const gxp_board_dt_compat[] = {

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 07/23] ARM: mmp: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (5 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 06/23] ARM: hpe: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 08/23] ARM: nomadik: " Rob Herring
                   ` (17 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-mmp/mmp-dt.c  | 3 ---
 arch/arm/mach-mmp/mmp2-dt.c | 4 ----
 arch/arm/mach-mmp/mmp3.c    | 4 ----
 3 files changed, 11 deletions(-)

diff --git a/arch/arm/mach-mmp/mmp-dt.c b/arch/arm/mach-mmp/mmp-dt.c
index 3f43c0867dca..8479996a8f2e 100644
--- a/arch/arm/mach-mmp/mmp-dt.c
+++ b/arch/arm/mach-mmp/mmp-dt.c
@@ -6,12 +6,9 @@
  *  Author: Haojian Zhuang <haojian.zhuang@marvell.com>
  */
 
-#include <linux/irqchip.h>
-#include <linux/of_platform.h>
 #include <linux/of_clk.h>
 #include <linux/clocksource.h>
 #include <asm/mach/arch.h>
-#include <asm/mach/time.h>
 #include <asm/hardware/cache-tauros2.h>
 
 #include "common.h"
diff --git a/arch/arm/mach-mmp/mmp2-dt.c b/arch/arm/mach-mmp/mmp2-dt.c
index 34a5fe4b3949..e5ddc327651b 100644
--- a/arch/arm/mach-mmp/mmp2-dt.c
+++ b/arch/arm/mach-mmp/mmp2-dt.c
@@ -6,13 +6,9 @@
  *  Author: Haojian Zhuang <haojian.zhuang@marvell.com>
  */
 
-#include <linux/io.h>
-#include <linux/irqchip.h>
-#include <linux/of_platform.h>
 #include <linux/of_clk.h>
 #include <linux/clocksource.h>
 #include <asm/mach/arch.h>
-#include <asm/mach/time.h>
 #include <asm/hardware/cache-tauros2.h>
 
 #include "common.h"
diff --git a/arch/arm/mach-mmp/mmp3.c b/arch/arm/mach-mmp/mmp3.c
index b0e86964f302..073a4ee219cb 100644
--- a/arch/arm/mach-mmp/mmp3.c
+++ b/arch/arm/mach-mmp/mmp3.c
@@ -5,10 +5,6 @@
  *  Copyright (C) 2019 Lubomir Rintel <lkundrak@v3.sk>
  */
 
-#include <linux/io.h>
-#include <linux/irqchip.h>
-#include <linux/of_platform.h>
-#include <linux/clk-provider.h>
 #include <asm/mach/arch.h>
 #include <asm/hardware/cache-l2x0.h>
 

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 08/23] ARM: nomadik: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (6 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 07/23] ARM: mmp: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-10  8:18   ` Linus Walleij
  2023-08-03 22:42 ` [PATCH v2 09/23] ARM: npcm: " Rob Herring
                   ` (16 subsequent siblings)
  24 siblings, 1 reply; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-nomadik/cpu-8815.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/arch/arm/mach-nomadik/cpu-8815.c b/arch/arm/mach-nomadik/cpu-8815.c
index 51f88a297c4e..0eed60917dcf 100644
--- a/arch/arm/mach-nomadik/cpu-8815.c
+++ b/arch/arm/mach-nomadik/cpu-8815.c
@@ -5,25 +5,12 @@
 
 #include <linux/types.h>
 #include <linux/init.h>
-#include <linux/device.h>
-#include <linux/amba/bus.h>
-#include <linux/platform_device.h>
 #include <linux/io.h>
-#include <linux/slab.h>
-#include <linux/irq.h>
-#include <linux/dma-mapping.h>
-#include <linux/of_irq.h>
-#include <linux/of_address.h>
-#include <linux/of_platform.h>
 
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
-#include <asm/mach/time.h>
 #include <asm/mach-types.h>
 
-#include <asm/cacheflush.h>
-#include <asm/hardware/cache-l2x0.h>
-
 /*
  * These are the only hard-coded address offsets we still have to use.
  */

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 09/23] ARM: npcm: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (7 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 08/23] ARM: nomadik: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 10/23] ARM: nspire: " Rob Herring
                   ` (15 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-npcm/platsmp.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/arm/mach-npcm/platsmp.c b/arch/arm/mach-npcm/platsmp.c
index 21633c70fe7f..41891d3aa124 100644
--- a/arch/arm/mach-npcm/platsmp.c
+++ b/arch/arm/mach-npcm/platsmp.c
@@ -5,12 +5,9 @@
 #define pr_fmt(fmt) "nuvoton,npcm7xx-smp: " fmt
 
 #include <linux/delay.h>
-#include <linux/device.h>
 #include <linux/smp.h>
 #include <linux/io.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
-#include <linux/of_platform.h>
 #include <linux/of_address.h>
 #include <asm/cacheflush.h>
 #include <asm/smp.h>

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 10/23] ARM: nspire: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (8 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 09/23] ARM: npcm: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 11/23] ARM: pxa: " Rob Herring
                   ` (14 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them. io.h was implicitly included
and is needed.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-nspire/nspire.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/arch/arm/mach-nspire/nspire.c b/arch/arm/mach-nspire/nspire.c
index 2d4abb0288b9..d20974a9fbc1 100644
--- a/arch/arm/mach-nspire/nspire.c
+++ b/arch/arm/mach-nspire/nspire.c
@@ -5,17 +5,10 @@
  *	Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
  */
 #include <linux/init.h>
-#include <linux/of_irq.h>
-#include <linux/of_address.h>
-#include <linux/of_platform.h>
-#include <linux/irqchip.h>
-#include <linux/irqchip/arm-vic.h>
-#include <linux/clkdev.h>
-#include <linux/amba/bus.h>
+#include <linux/io.h>
 
 #include <asm/mach/arch.h>
 #include <asm/mach-types.h>
-#include <asm/mach/map.h>
 
 #include "mmio.h"
 

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 11/23] ARM: pxa: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (9 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 10/23] ARM: nspire: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 12/23] ARM: rockchip: " Rob Herring
                   ` (13 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-pxa/pxa-dt.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/arm/mach-pxa/pxa-dt.c b/arch/arm/mach-pxa/pxa-dt.c
index 5e5d543fdf46..a292de91dce5 100644
--- a/arch/arm/mach-pxa/pxa-dt.c
+++ b/arch/arm/mach-pxa/pxa-dt.c
@@ -5,13 +5,7 @@
  *  Copyright (C) 2012 Daniel Mack
  */
 
-#include <linux/irq.h>
-#include <linux/irqdomain.h>
-#include <linux/of_irq.h>
-#include <linux/of_platform.h>
 #include <asm/mach/arch.h>
-#include <asm/mach/time.h>
-#include "irqs.h"
 
 #include "generic.h"
 

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 12/23] ARM: rockchip: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (10 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 11/23] ARM: pxa: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-06 13:41   ` Heiko Stübner
  2023-08-03 22:42 ` [PATCH v2 13/23] ARM: versatile: " Rob Herring
                   ` (12 subsequent siblings)
  24 siblings, 1 reply; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them.

of_platform.h is not needed, but it implicitly includes of.h which is
needed.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-rockchip/rockchip.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c
index beea4564eed4..82102fbabf92 100644
--- a/arch/arm/mach-rockchip/rockchip.c
+++ b/arch/arm/mach-rockchip/rockchip.c
@@ -9,15 +9,11 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/io.h>
+#include <linux/of.h>
 #include <linux/of_clk.h>
-#include <linux/of_platform.h>
-#include <linux/irqchip.h>
 #include <linux/clocksource.h>
-#include <linux/mfd/syscon.h>
-#include <linux/regmap.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
-#include <asm/hardware/cache-l2x0.h>
 #include "core.h"
 #include "pm.h"
 

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 13/23] ARM: versatile: Drop unused includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (11 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 12/23] ARM: rockchip: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-10  8:19   ` Linus Walleij
  2023-08-03 22:42 ` [PATCH v2 14/23] ARM: mvebu: Explicitly include correct DT includes Rob Herring
                   ` (11 subsequent siblings)
  24 siblings, 1 reply; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Several includes are not needed, so drop them.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-versatile/realview.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/mach-versatile/realview.c b/arch/arm/mach-versatile/realview.c
index feab66080ba2..a3933e2373d5 100644
--- a/arch/arm/mach-versatile/realview.c
+++ b/arch/arm/mach-versatile/realview.c
@@ -4,9 +4,7 @@
  *
  * Author: Linus Walleij <linus.walleij@linaro.org>
  */
-#include <linux/of_platform.h>
 #include <asm/mach/arch.h>
-#include <asm/hardware/cache-l2x0.h>
 
 static const char *const realview_dt_platform_compat[] __initconst = {
 	"arm,realview-eb",

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 14/23] ARM: mvebu: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (12 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 13/23] ARM: versatile: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 15/23] ARM: spear: " Rob Herring
                   ` (10 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-mvebu/kirkwood.c | 1 +
 arch/arm/mach-mvebu/pmsu.c     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-mvebu/kirkwood.c b/arch/arm/mach-mvebu/kirkwood.c
index 8ff34753e760..73b2a86d6489 100644
--- a/arch/arm/mach-mvebu/kirkwood.c
+++ b/arch/arm/mach-mvebu/kirkwood.c
@@ -15,6 +15,7 @@
 #include <linux/of_address.h>
 #include <linux/of_net.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <asm/hardware/cache-feroceon-l2.h>
 #include <asm/mach/arch.h>
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
index 6f366d8c4231..79c5171f06ec 100644
--- a/arch/arm/mach-mvebu/pmsu.c
+++ b/arch/arm/mach-mvebu/pmsu.c
@@ -23,8 +23,8 @@
 #include <linux/kernel.h>
 #include <linux/mbus.h>
 #include <linux/mvebu-pmsu.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/resource.h>
 #include <linux/slab.h>

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 15/23] ARM: spear: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (13 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 14/23] ARM: mvebu: Explicitly include correct DT includes Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 16/23] bus: " Rob Herring
                   ` (9 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm, Viresh Kumar

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it was merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/mach-spear/spear1340.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-spear/spear1340.c b/arch/arm/mach-spear/spear1340.c
index a391f154eff9..70986ef6c877 100644
--- a/arch/arm/mach-spear/spear1340.c
+++ b/arch/arm/mach-spear/spear1340.c
@@ -10,7 +10,7 @@
 
 #define pr_fmt(fmt) "SPEAr1340: " fmt
 
-#include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <asm/mach/arch.h>
 #include "generic.h"
 

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 16/23] bus: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (14 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 15/23] ARM: spear: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-04 15:11   ` Laurentiu Tudor
  2023-08-04 19:08   ` Jernej Škrabec
  2023-08-03 22:42 ` [PATCH v2 17/23] firmware: " Rob Herring
                   ` (8 subsequent siblings)
  24 siblings, 2 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 drivers/bus/fsl-mc/fsl-mc-bus.c | 1 +
 drivers/bus/fsl-mc/fsl-mc-msi.c | 2 --
 drivers/bus/hisi_lpc.c          | 2 +-
 drivers/bus/omap_l3_smx.c       | 1 -
 drivers/bus/simple-pm-bus.c     | 2 ++
 drivers/bus/sunxi-rsb.c         | 2 +-
 drivers/bus/ti-pwmss.c          | 2 +-
 7 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c
index 4352745a923c..7c57e7d2ff55 100644
--- a/drivers/bus/fsl-mc/fsl-mc-bus.c
+++ b/drivers/bus/fsl-mc/fsl-mc-bus.c
@@ -14,6 +14,7 @@
 #include <linux/of_device.h>
 #include <linux/of_address.h>
 #include <linux/ioport.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/limits.h>
 #include <linux/bitops.h>
diff --git a/drivers/bus/fsl-mc/fsl-mc-msi.c b/drivers/bus/fsl-mc/fsl-mc-msi.c
index f3f8af9426c9..82cd69f7884c 100644
--- a/drivers/bus/fsl-mc/fsl-mc-msi.c
+++ b/drivers/bus/fsl-mc/fsl-mc-msi.c
@@ -7,8 +7,6 @@
  *
  */
 
-#include <linux/of_device.h>
-#include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/irq.h>
 #include <linux/irqdomain.h>
diff --git a/drivers/bus/hisi_lpc.c b/drivers/bus/hisi_lpc.c
index 5b65a48f17e7..cdc4e38c113e 100644
--- a/drivers/bus/hisi_lpc.c
+++ b/drivers/bus/hisi_lpc.c
@@ -13,9 +13,9 @@
 #include <linux/logic_pio.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_address.h>
 #include <linux/of_platform.h>
 #include <linux/pci.h>
+#include <linux/platform_device.h>
 #include <linux/serial_8250.h>
 #include <linux/slab.h>
 
diff --git a/drivers/bus/omap_l3_smx.c b/drivers/bus/omap_l3_smx.c
index bb1606f5ce2d..9ba18c39c671 100644
--- a/drivers/bus/omap_l3_smx.c
+++ b/drivers/bus/omap_l3_smx.c
@@ -15,7 +15,6 @@
 #include <linux/io.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 
 #include "omap_l3_smx.h"
 
diff --git a/drivers/bus/simple-pm-bus.c b/drivers/bus/simple-pm-bus.c
index 4da77ca7b75a..aafcc481de91 100644
--- a/drivers/bus/simple-pm-bus.c
+++ b/drivers/bus/simple-pm-bus.c
@@ -11,6 +11,8 @@
 
 #include <linux/clk.h>
 #include <linux/module.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c
index 2aefd5dde3c9..db0ed4e5d315 100644
--- a/drivers/bus/sunxi-rsb.c
+++ b/drivers/bus/sunxi-rsb.c
@@ -39,7 +39,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_irq.h>
-#include <linux/of_platform.h>
+#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm.h>
 #include <linux/pm_runtime.h>
diff --git a/drivers/bus/ti-pwmss.c b/drivers/bus/ti-pwmss.c
index e9c26c94251b..480a4de76cd4 100644
--- a/drivers/bus/ti-pwmss.c
+++ b/drivers/bus/ti-pwmss.c
@@ -10,7 +10,7 @@
 #include <linux/io.h>
 #include <linux/err.h>
 #include <linux/pm_runtime.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 
 static const struct of_device_id pwmss_of_match[] = {
 	{ .compatible	= "ti,am33xx-pwmss" },

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 17/23] firmware: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (15 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 16/23] bus: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-04  9:51   ` Sudeep Holla
  2023-08-03 22:42 ` [PATCH v2 18/23] soc: aspeed: " Rob Herring
                   ` (7 subsequent siblings)
  24 siblings, 1 reply; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm, Thierry Reding

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Rob Herring <robh@kernel.org>
---
 drivers/firmware/arm_scmi/driver.c | 4 ++--
 drivers/firmware/imx/imx-dsp.c     | 1 -
 drivers/firmware/imx/imx-scu-irq.c | 1 +
 drivers/firmware/imx/imx-scu.c     | 1 +
 drivers/firmware/mtk-adsp-ipc.c    | 1 -
 drivers/firmware/raspberrypi.c     | 1 +
 drivers/firmware/scpi_pm_domain.c  | 3 ++-
 drivers/firmware/stratix10-rsu.c   | 1 -
 drivers/firmware/tegra/bpmp.c      | 3 +--
 drivers/firmware/xilinx/zynqmp.c   | 1 +
 10 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c
index b5957cc12fee..87383c05424b 100644
--- a/drivers/firmware/arm_scmi/driver.c
+++ b/drivers/firmware/arm_scmi/driver.c
@@ -28,8 +28,8 @@
 #include <linux/hashtable.h>
 #include <linux/list.h>
 #include <linux/module.h>
-#include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/processor.h>
 #include <linux/refcount.h>
 #include <linux/slab.h>
diff --git a/drivers/firmware/imx/imx-dsp.c b/drivers/firmware/imx/imx-dsp.c
index a6c06d7476c3..3dba590a2a95 100644
--- a/drivers/firmware/imx/imx-dsp.c
+++ b/drivers/firmware/imx/imx-dsp.c
@@ -10,7 +10,6 @@
 #include <linux/kernel.h>
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 
diff --git a/drivers/firmware/imx/imx-scu-irq.c b/drivers/firmware/imx/imx-scu-irq.c
index d9dcc20945c6..a149537e0639 100644
--- a/drivers/firmware/imx/imx-scu-irq.c
+++ b/drivers/firmware/imx/imx-scu-irq.c
@@ -10,6 +10,7 @@
 #include <linux/firmware/imx/ipc.h>
 #include <linux/firmware/imx/sci.h>
 #include <linux/mailbox_client.h>
+#include <linux/of.h>
 #include <linux/suspend.h>
 
 #define IMX_SC_IRQ_FUNC_ENABLE	1
diff --git a/drivers/firmware/imx/imx-scu.c b/drivers/firmware/imx/imx-scu.c
index 47db49911e7b..2e5914f3a110 100644
--- a/drivers/firmware/imx/imx-scu.c
+++ b/drivers/firmware/imx/imx-scu.c
@@ -16,6 +16,7 @@
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 
diff --git a/drivers/firmware/mtk-adsp-ipc.c b/drivers/firmware/mtk-adsp-ipc.c
index 3c071f814455..85e94ddc7204 100644
--- a/drivers/firmware/mtk-adsp-ipc.c
+++ b/drivers/firmware/mtk-adsp-ipc.c
@@ -8,7 +8,6 @@
 #include <linux/kernel.h>
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 
diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c
index c3bc29e0a488..f66efaa5196d 100644
--- a/drivers/firmware/raspberrypi.c
+++ b/drivers/firmware/raspberrypi.c
@@ -10,6 +10,7 @@
 #include <linux/kref.h>
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
diff --git a/drivers/firmware/scpi_pm_domain.c b/drivers/firmware/scpi_pm_domain.c
index 800673910b51..2231e6dd2070 100644
--- a/drivers/firmware/scpi_pm_domain.c
+++ b/drivers/firmware/scpi_pm_domain.c
@@ -8,7 +8,8 @@
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/pm_domain.h>
 #include <linux/scpi_protocol.h>
 
diff --git a/drivers/firmware/stratix10-rsu.c b/drivers/firmware/stratix10-rsu.c
index e51c95f8d445..ab3074705380 100644
--- a/drivers/firmware/stratix10-rsu.c
+++ b/drivers/firmware/stratix10-rsu.c
@@ -10,7 +10,6 @@
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/of.h>
-#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/firmware/intel/stratix10-svc-client.h>
 #include <linux/string.h>
diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c
index 17bd3590aaa2..51d062e0c3f1 100644
--- a/drivers/firmware/tegra/bpmp.c
+++ b/drivers/firmware/tegra/bpmp.c
@@ -8,8 +8,7 @@
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pm.h>
 #include <linux/semaphore.h>
diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c
index f8c4eb2b43f8..eb9ad5ae393f 100644
--- a/drivers/firmware/xilinx/zynqmp.c
+++ b/drivers/firmware/xilinx/zynqmp.c
@@ -18,6 +18,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>
 #include <linux/hashtable.h>

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 18/23] soc: aspeed: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (16 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 17/23] firmware: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:42 ` [PATCH v2 19/23] soc: mediatek: " Rob Herring
                   ` (6 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 drivers/soc/aspeed/aspeed-lpc-snoop.c    | 1 -
 drivers/soc/aspeed/aspeed-p2a-ctrl.c     | 2 +-
 drivers/soc/aspeed/aspeed-uart-routing.c | 3 +--
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/soc/aspeed/aspeed-lpc-snoop.c b/drivers/soc/aspeed/aspeed-lpc-snoop.c
index eceeaf8dfbeb..773dbcbc03a6 100644
--- a/drivers/soc/aspeed/aspeed-lpc-snoop.c
+++ b/drivers/soc/aspeed/aspeed-lpc-snoop.c
@@ -19,7 +19,6 @@
 #include <linux/miscdevice.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/poll.h>
 #include <linux/regmap.h>
diff --git a/drivers/soc/aspeed/aspeed-p2a-ctrl.c b/drivers/soc/aspeed/aspeed-p2a-ctrl.c
index 20b5fb2a207c..548f44da28a9 100644
--- a/drivers/soc/aspeed/aspeed-p2a-ctrl.c
+++ b/drivers/soc/aspeed/aspeed-p2a-ctrl.c
@@ -18,8 +18,8 @@
 #include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
diff --git a/drivers/soc/aspeed/aspeed-uart-routing.c b/drivers/soc/aspeed/aspeed-uart-routing.c
index 59123e1f27ac..3a4c1f28cb34 100644
--- a/drivers/soc/aspeed/aspeed-uart-routing.c
+++ b/drivers/soc/aspeed/aspeed-uart-routing.c
@@ -5,8 +5,7 @@
  */
 #include <linux/device.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
 #include <linux/mfd/syscon.h>
 #include <linux/regmap.h>
 #include <linux/platform_device.h>

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 19/23] soc: mediatek: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (17 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 18/23] soc: aspeed: " Rob Herring
@ 2023-08-03 22:42 ` Rob Herring
  2023-08-03 22:43 ` [PATCH v2 20/23] soc: rockchip: " Rob Herring
                   ` (5 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:42 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
---
v2:
 - Drop files moved to genpd
---
 drivers/soc/mediatek/mtk-cmdq-helper.c | 1 +
 drivers/soc/mediatek/mtk-devapc.c      | 2 +-
 drivers/soc/mediatek/mtk-mmsys.c       | 2 +-
 drivers/soc/mediatek/mtk-mutex.c       | 3 +--
 drivers/soc/mediatek/mtk-pmic-wrap.c   | 3 ++-
 5 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/soc/mediatek/mtk-cmdq-helper.c b/drivers/soc/mediatek/mtk-cmdq-helper.c
index c1837a468267..b0cd071c4719 100644
--- a/drivers/soc/mediatek/mtk-cmdq-helper.c
+++ b/drivers/soc/mediatek/mtk-cmdq-helper.c
@@ -7,6 +7,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/module.h>
 #include <linux/mailbox_controller.h>
+#include <linux/of.h>
 #include <linux/soc/mediatek/mtk-cmdq.h>
 
 #define CMDQ_WRITE_ENABLE_MASK	BIT(0)
diff --git a/drivers/soc/mediatek/mtk-devapc.c b/drivers/soc/mediatek/mtk-devapc.c
index bad139cb117e..b28feb967540 100644
--- a/drivers/soc/mediatek/mtk-devapc.c
+++ b/drivers/soc/mediatek/mtk-devapc.c
@@ -8,7 +8,7 @@
 #include <linux/iopoll.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/of_irq.h>
 #include <linux/of_address.h>
 
diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers/soc/mediatek/mtk-mmsys.c
index 9619faa796e8..ffb75711a1da 100644
--- a/drivers/soc/mediatek/mtk-mmsys.c
+++ b/drivers/soc/mediatek/mtk-mmsys.c
@@ -8,7 +8,7 @@
 #include <linux/device.h>
 #include <linux/io.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/soc/mediatek/mtk-mmsys.h>
diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c
index 4aa0913817ae..9d9f5ae578ac 100644
--- a/drivers/soc/mediatek/mtk-mutex.c
+++ b/drivers/soc/mediatek/mtk-mutex.c
@@ -6,8 +6,7 @@
 #include <linux/clk.h>
 #include <linux/iopoll.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
-#include <linux/of_address.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/soc/mediatek/mtk-mmsys.h>
diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c
index 11095b8de71a..efd9cae212dc 100644
--- a/drivers/soc/mediatek/mtk-pmic-wrap.c
+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c
@@ -8,7 +8,8 @@
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/reset.h>

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 20/23] soc: rockchip: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (18 preceding siblings ...)
  2023-08-03 22:42 ` [PATCH v2 19/23] soc: mediatek: " Rob Herring
@ 2023-08-03 22:43 ` Rob Herring
  2023-08-03 22:43 ` [PATCH v2 21/23] soc: sunxi: " Rob Herring
                   ` (4 subsequent siblings)
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:43 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 drivers/soc/rockchip/grf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/rockchip/grf.c b/drivers/soc/rockchip/grf.c
index d768c5a70174..5fd62046b28a 100644
--- a/drivers/soc/rockchip/grf.c
+++ b/drivers/soc/rockchip/grf.c
@@ -7,7 +7,7 @@
 
 #include <linux/err.h>
 #include <linux/mfd/syscon.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 21/23] soc: sunxi: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (19 preceding siblings ...)
  2023-08-03 22:43 ` [PATCH v2 20/23] soc: rockchip: " Rob Herring
@ 2023-08-03 22:43 ` Rob Herring
  2023-08-04 14:38   ` Jernej Škrabec
  2023-08-06 11:41   ` Jernej Škrabec
  2023-08-03 22:43 ` [PATCH v2 22/23] soc: xilinx: " Rob Herring
                   ` (3 subsequent siblings)
  24 siblings, 2 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:43 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>
---
v2:
 - Drop sun20i-ppu.c which moved
---
 drivers/soc/sunxi/sunxi_sram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c
index 4c4864cd2342..4458b2e0562b 100644
--- a/drivers/soc/sunxi/sunxi_sram.c
+++ b/drivers/soc/sunxi/sunxi_sram.c
@@ -15,7 +15,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 22/23] soc: xilinx: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (20 preceding siblings ...)
  2023-08-03 22:43 ` [PATCH v2 21/23] soc: sunxi: " Rob Herring
@ 2023-08-03 22:43 ` Rob Herring
  2023-08-04  6:51   ` Michal Simek
  2023-08-03 22:43 ` [PATCH v2 23/23] soc: fsl: " Rob Herring
                   ` (2 subsequent siblings)
  24 siblings, 1 reply; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:43 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 drivers/soc/xilinx/zynqmp_power.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/xilinx/zynqmp_power.c b/drivers/soc/xilinx/zynqmp_power.c
index 641dcc958911..913417506468 100644
--- a/drivers/soc/xilinx/zynqmp_power.c
+++ b/drivers/soc/xilinx/zynqmp_power.c
@@ -11,6 +11,7 @@
 
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/reboot.h>
 #include <linux/suspend.h>

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH v2 23/23] soc: fsl: Explicitly include correct DT includes
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (21 preceding siblings ...)
  2023-08-03 22:43 ` [PATCH v2 22/23] soc: xilinx: " Rob Herring
@ 2023-08-03 22:43 ` Rob Herring
  2023-08-09 13:57 ` (subset) [PATCH v2 00/23] ARM: DT include cleanups Heiko Stuebner
  2023-08-12  9:14 ` patchwork-bot+linux-soc
  24 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-03 22:43 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>

---
v2:
 - Add qe.c
---
 drivers/soc/fsl/dpaa2-console.c | 3 ++-
 drivers/soc/fsl/qe/qe.c         | 3 ++-
 drivers/soc/fsl/qe/qe_common.c  | 1 -
 drivers/soc/fsl/qe/qe_tdm.c     | 4 +---
 4 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/drivers/soc/fsl/dpaa2-console.c b/drivers/soc/fsl/dpaa2-console.c
index 53917410f2bd..1dca693b6b38 100644
--- a/drivers/soc/fsl/dpaa2-console.c
+++ b/drivers/soc/fsl/dpaa2-console.c
@@ -9,9 +9,10 @@
 #define pr_fmt(fmt) "dpaa2-console: " fmt
 
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/miscdevice.h>
+#include <linux/platform_device.h>
 #include <linux/uaccess.h>
 #include <linux/slab.h>
 #include <linux/fs.h>
diff --git a/drivers/soc/fsl/qe/qe.c b/drivers/soc/fsl/qe/qe.c
index 58746e570d14..3ee0c7c1e9a4 100644
--- a/drivers/soc/fsl/qe/qe.c
+++ b/drivers/soc/fsl/qe/qe.c
@@ -25,7 +25,8 @@
 #include <linux/iopoll.h>
 #include <linux/crc32.h>
 #include <linux/mod_devicetable.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <soc/fsl/qe/immap_qe.h>
 #include <soc/fsl/qe/qe.h>
 
diff --git a/drivers/soc/fsl/qe/qe_common.c b/drivers/soc/fsl/qe/qe_common.c
index a0cb8e746879..9729ce86db59 100644
--- a/drivers/soc/fsl/qe/qe_common.c
+++ b/drivers/soc/fsl/qe/qe_common.c
@@ -16,7 +16,6 @@
 #include <linux/genalloc.h>
 #include <linux/init.h>
 #include <linux/list.h>
-#include <linux/of_device.h>
 #include <linux/spinlock.h>
 #include <linux/export.h>
 #include <linux/of.h>
diff --git a/drivers/soc/fsl/qe/qe_tdm.c b/drivers/soc/fsl/qe/qe_tdm.c
index 7d7d78d3ee50..a3b691875c8e 100644
--- a/drivers/soc/fsl/qe/qe_tdm.c
+++ b/drivers/soc/fsl/qe/qe_tdm.c
@@ -9,9 +9,7 @@
  */
 #include <linux/io.h>
 #include <linux/kernel.h>
-#include <linux/of_address.h>
-#include <linux/of_irq.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
 #include <soc/fsl/qe/qe_tdm.h>
 
 static int set_tdm_framer(const char *tdm_framer_type)

-- 
2.40.1


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 22/23] soc: xilinx: Explicitly include correct DT includes
  2023-08-03 22:43 ` [PATCH v2 22/23] soc: xilinx: " Rob Herring
@ 2023-08-04  6:51   ` Michal Simek
  0 siblings, 0 replies; 39+ messages in thread
From: Michal Simek @ 2023-08-04  6:51 UTC (permalink / raw)
  To: Rob Herring, soc, Patrice Chotard, Tsahee Zidenberg,
	Antoine Tenart, Jisheng Zhang, Sebastian Hesselbarth,
	Andrew Lunn, Gregory Clement, Jean-Marie Verdun, Nick Hawkins,
	Lubomir Rintel, Linus Walleij, Avi Fishman, Tomer Maimon,
	Tali Perry, Patrick Venture, Nancy Yuen, Benjamin Fair,
	Daniel Mack, Haojian Zhuang, Robert Jarzmik, Heiko Stuebner,
	Liviu Dudau, Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar,
	Shiraz Has him, Stuart Yoder, Laurentiu Tudor, Jay Fang,
	Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Cristian Marussi,
	Shawn Guo, Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Joel Stanley, Andrew Jeffery,
	Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Hi Rob,

On 8/4/23 00:43, Rob Herring wrote:
> The DT of_device.h and of_platform.h date back to the separate
> of_platform_bus_type before it as merged into the regular platform bus.
> As part of that merge prepping Arm DT support 13 years ago, they
> "temporarily" include each other. They also include platform_device.h
> and of.h. As a result, there's a pretty much random mix of those include
> files used throughout the tree. In order to detangle these headers and
> replace the implicit includes with struct declarations, users need to
> explicitly include the correct includes.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>   drivers/soc/xilinx/zynqmp_power.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/soc/xilinx/zynqmp_power.c b/drivers/soc/xilinx/zynqmp_power.c
> index 641dcc958911..913417506468 100644
> --- a/drivers/soc/xilinx/zynqmp_power.c
> +++ b/drivers/soc/xilinx/zynqmp_power.c
> @@ -11,6 +11,7 @@
>   
>   #include <linux/mailbox_client.h>
>   #include <linux/module.h>
> +#include <linux/of.h>
>   #include <linux/platform_device.h>
>   #include <linux/reboot.h>
>   #include <linux/suspend.h>
> 

I was checking and I was on CC on the v1 but I didn't get this to my inbox.
Anyway let me apply this to my queue.

Arnd: If you want to take it directly I am fine with it too.

Thanks,
Michal

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 17/23] firmware: Explicitly include correct DT includes
  2023-08-03 22:42 ` [PATCH v2 17/23] firmware: " Rob Herring
@ 2023-08-04  9:51   ` Sudeep Holla
  0 siblings, 0 replies; 39+ messages in thread
From: Sudeep Holla @ 2023-08-04  9:51 UTC (permalink / raw)
  To: Rob Herring
  Cc: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Lorenzo Pieralisi, Viresh Kumar, Sh iraz Has him, Stuart Yoder,
	Laurentiu Tudor, Jay Fang, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, linux-arm-kernel, linux-kernel, openbmc,
	linux-rockchip, linux-sunxi, linux-mediatek, linux-rpi-kernel,
	linux-tegra, linux-aspeed, linux-pm, Thierry Reding

On Thu, Aug 03, 2023 at 04:42:57PM -0600, Rob Herring wrote:
> The DT of_device.h and of_platform.h date back to the separate
> of_platform_bus_type before it as merged into the regular platform bus.
> As part of that merge prepping Arm DT support 13 years ago, they
> "temporarily" include each other. They also include platform_device.h
> and of.h. As a result, there's a pretty much random mix of those include
> files used throughout the tree. In order to detangle these headers and
> replace the implicit includes with struct declarations, users need to
> explicitly include the correct includes.
> 
> Acked-by: Dinh Nguyen <dinguyen@kernel.org>
> Acked-by: Thierry Reding <treding@nvidia.com>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  drivers/firmware/arm_scmi/driver.c | 4 ++--
>  drivers/firmware/scpi_pm_domain.c  | 3 ++-

(For SCMI changes)

Acked-by:  Sudeep Holla <sudeep.holla@arm.com>

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 21/23] soc: sunxi: Explicitly include correct DT includes
  2023-08-03 22:43 ` [PATCH v2 21/23] soc: sunxi: " Rob Herring
@ 2023-08-04 14:38   ` Jernej Škrabec
  2023-08-06 11:41   ` Jernej Škrabec
  1 sibling, 0 replies; 39+ messages in thread
From: Jernej Škrabec @ 2023-08-04 14:38 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, Rob Herring
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Dne petek, 04. avgust 2023 ob 00:43:01 CEST je Rob Herring napisal(a):
> The DT of_device.h and of_platform.h date back to the separate
> of_platform_bus_type before it as merged into the regular platform bus.
> As part of that merge prepping Arm DT support 13 years ago, they
> "temporarily" include each other. They also include platform_device.h
> and of.h. As a result, there's a pretty much random mix of those include
> files used throughout the tree. In order to detangle these headers and
> replace the implicit includes with struct declarations, users need to
> explicitly include the correct includes.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Should I take this through sunxi tree?

Best regards,
Jernej

> ---
> v2:
>  - Drop sun20i-ppu.c which moved
> ---
>  drivers/soc/sunxi/sunxi_sram.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c
> index 4c4864cd2342..4458b2e0562b 100644
> --- a/drivers/soc/sunxi/sunxi_sram.c
> +++ b/drivers/soc/sunxi/sunxi_sram.c
> @@ -15,7 +15,7 @@
>  #include <linux/module.h>
>  #include <linux/of.h>
>  #include <linux/of_address.h>
> -#include <linux/of_device.h>
> +#include <linux/of_platform.h>
>  #include <linux/platform_device.h>
>  #include <linux/regmap.h>





^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 02/23] ARM: sti: Drop unused includes
  2023-08-03 22:42 ` [PATCH v2 02/23] ARM: sti: Drop unused includes Rob Herring
@ 2023-08-04 15:02   ` Patrice CHOTARD
  0 siblings, 0 replies; 39+ messages in thread
From: Patrice CHOTARD @ 2023-08-04 15:02 UTC (permalink / raw)
  To: Rob Herring, soc, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm



On 8/4/23 00:42, Rob Herring wrote:
> Several includes are not needed, so drop them.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  arch/arm/mach-sti/board-dt.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/arch/arm/mach-sti/board-dt.c b/arch/arm/mach-sti/board-dt.c
> index ffecbf29646f..488084b61b4a 100644
> --- a/arch/arm/mach-sti/board-dt.c
> +++ b/arch/arm/mach-sti/board-dt.c
> @@ -4,8 +4,6 @@
>   * Author(s): Srinivas Kandagatla <srinivas.kandagatla@st.com>
>   */
>  
> -#include <linux/irq.h>
> -#include <linux/of_platform.h>
>  #include <asm/hardware/cache-l2x0.h>
>  #include <asm/mach/arch.h>
>  
> 
Acked-by: Patrice Chotard <patrice.chotard@foss.st.com>

Thanks
Patrice

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 16/23] bus: Explicitly include correct DT includes
  2023-08-03 22:42 ` [PATCH v2 16/23] bus: " Rob Herring
@ 2023-08-04 15:11   ` Laurentiu Tudor
  2023-08-04 19:08   ` Jernej Škrabec
  1 sibling, 0 replies; 39+ messages in thread
From: Laurentiu Tudor @ 2023-08-04 15:11 UTC (permalink / raw)
  To: Rob Herring, soc, Patrice Chotard, Tsahee Zidenberg,
	Antoine Tenart, Jisheng Zhang, Sebastian Hesselbarth,
	Andrew Lunn, Gregory Clement, Jean-Marie Verdun, Nick Hawkins,
	Lubomir Rintel, Linus Walleij, Avi Fishman, Tomer Maimon,
	Tali Perry, Patrick Venture, Nancy Yuen, Benjamin Fair,
	Daniel Mack, Haojian Zhuang, Robert Jarzmik, Heiko Stuebner,
	Liviu Dudau, Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar,
	Shiraz Has him, Stuart Yoder, Jay Fang, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Cristian Marussi, Shawn Guo,
	Sascha Hauer, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno, Florian Fainelli, Dinh Nguyen,
	Thierry Reding, Jonathan Hunter, Michal Simek, Joel Stanley,
	Andrew Jeffery, Ulf Hansson, Li Yang, Qiang Zhao
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm



On 8/4/2023 1:42 AM, Rob Herring wrote:
> The DT of_device.h and of_platform.h date back to the separate
> of_platform_bus_type before it as merged into the regular platform bus.
> As part of that merge prepping Arm DT support 13 years ago, they
> "temporarily" include each other. They also include platform_device.h
> and of.h. As a result, there's a pretty much random mix of those include
> files used throughout the tree. In order to detangle these headers and
> replace the implicit includes with struct declarations, users need to
> explicitly include the correct includes.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>   drivers/bus/fsl-mc/fsl-mc-bus.c | 1 +
>   drivers/bus/fsl-mc/fsl-mc-msi.c | 2 --
>   drivers/bus/hisi_lpc.c          | 2 +-
>   drivers/bus/omap_l3_smx.c       | 1 -
>   drivers/bus/simple-pm-bus.c     | 2 ++
>   drivers/bus/sunxi-rsb.c         | 2 +-
>   drivers/bus/ti-pwmss.c          | 2 +-
>   7 files changed, 6 insertions(+), 6 deletions(-)
> 

For drivers/bus/fsl-mc bits:

Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>

---
Thanks & Best Regards, Laurentiu

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 16/23] bus: Explicitly include correct DT includes
  2023-08-03 22:42 ` [PATCH v2 16/23] bus: " Rob Herring
  2023-08-04 15:11   ` Laurentiu Tudor
@ 2023-08-04 19:08   ` Jernej Škrabec
  1 sibling, 0 replies; 39+ messages in thread
From: Jernej Škrabec @ 2023-08-04 19:08 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, Rob Herring
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Dne petek, 04. avgust 2023 ob 00:42:56 CEST je Rob Herring napisal(a):
> The DT of_device.h and of_platform.h date back to the separate
> of_platform_bus_type before it as merged into the regular platform bus.
> As part of that merge prepping Arm DT support 13 years ago, they
> "temporarily" include each other. They also include platform_device.h
> and of.h. As a result, there's a pretty much random mix of those include
> files used throughout the tree. In order to detangle these headers and
> replace the implicit includes with struct declarations, users need to
> explicitly include the correct includes.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  drivers/bus/fsl-mc/fsl-mc-bus.c | 1 +
>  drivers/bus/fsl-mc/fsl-mc-msi.c | 2 --
>  drivers/bus/hisi_lpc.c          | 2 +-
>  drivers/bus/omap_l3_smx.c       | 1 -
>  drivers/bus/simple-pm-bus.c     | 2 ++
>  drivers/bus/sunxi-rsb.c         | 2 +-

for sunxi-rsb:
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

>  drivers/bus/ti-pwmss.c          | 2 +-




^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 04/23] ARM: berlin: Drop unused includes
  2023-08-03 22:42 ` [PATCH v2 04/23] ARM: berlin: " Rob Herring
@ 2023-08-06  9:26   ` Jisheng Zhang
  0 siblings, 0 replies; 39+ messages in thread
From: Jisheng Zhang @ 2023-08-06  9:26 UTC (permalink / raw)
  To: Rob Herring
  Cc: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Sebastian Hesselbarth, Andrew Lunn, Gregory Clement,
	Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel, Linus Walleij,
	Avi Fishman, Tomer Maimon, Tali Perry, Patrick Venture,
	Nancy Yuen, Benjamin Fair, Daniel Mack, Haojian Zhuang,
	Robert Jarzmik, Heiko Stuebner, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him, Stuart Yoder,
	Laurentiu Tudor, Jay Fang, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, linux-arm-kernel, linux-kernel, openbmc,
	linux-rockchip, linux-sunxi, linux-mediatek, linux-rpi-kernel,
	linux-tegra, linux-aspeed, linux-pm

On Thu, Aug 03, 2023 at 04:42:44PM -0600, Rob Herring wrote:
> Several includes are not needed, so drop them.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Reviewed-by: Jisheng Zhang <jszhang@kernel.org>

Thanks!

PS: what would be the better merge path? Arnd take it directly with each
sub-maintainers' ack or something else?
> ---
>  arch/arm/mach-berlin/berlin.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/arch/arm/mach-berlin/berlin.c b/arch/arm/mach-berlin/berlin.c
> index 2424ad40190c..13d5c899f09e 100644
> --- a/arch/arm/mach-berlin/berlin.c
> +++ b/arch/arm/mach-berlin/berlin.c
> @@ -8,11 +8,6 @@
>   *  (c) Marvell International Ltd.
>   */
>  
> -#include <linux/init.h>
> -#include <linux/io.h>
> -#include <linux/kernel.h>
> -#include <linux/of_platform.h>
> -#include <asm/hardware/cache-l2x0.h>
>  #include <asm/mach/arch.h>
>  
>  static const char * const berlin_dt_compat[] = {
> 
> -- 
> 2.40.1
> 

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 21/23] soc: sunxi: Explicitly include correct DT includes
  2023-08-03 22:43 ` [PATCH v2 21/23] soc: sunxi: " Rob Herring
  2023-08-04 14:38   ` Jernej Škrabec
@ 2023-08-06 11:41   ` Jernej Škrabec
  2023-08-22 22:30     ` Rob Herring
  1 sibling, 1 reply; 39+ messages in thread
From: Jernej Škrabec @ 2023-08-06 11:41 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, Rob Herring
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Dne petek, 04. avgust 2023 ob 00:43:01 CEST je Rob Herring napisal(a):
> The DT of_device.h and of_platform.h date back to the separate
> of_platform_bus_type before it as merged into the regular platform bus.
> As part of that merge prepping Arm DT support 13 years ago, they
> "temporarily" include each other. They also include platform_device.h
> and of.h. As a result, there's a pretty much random mix of those include
> files used throughout the tree. In order to detangle these headers and
> replace the implicit includes with struct declarations, users need to
> explicitly include the correct includes.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Applied to sunxi tree, thanks!

Best regards,
Jernej

> ---
> v2:
>  - Drop sun20i-ppu.c which moved
> ---
>  drivers/soc/sunxi/sunxi_sram.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c
> index 4c4864cd2342..4458b2e0562b 100644
> --- a/drivers/soc/sunxi/sunxi_sram.c
> +++ b/drivers/soc/sunxi/sunxi_sram.c
> @@ -15,7 +15,7 @@
>  #include <linux/module.h>
>  #include <linux/of.h>
>  #include <linux/of_address.h>
> -#include <linux/of_device.h>
> +#include <linux/of_platform.h>
>  #include <linux/platform_device.h>
>  #include <linux/regmap.h>





^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 12/23] ARM: rockchip: Drop unused includes
  2023-08-03 22:42 ` [PATCH v2 12/23] ARM: rockchip: " Rob Herring
@ 2023-08-06 13:41   ` Heiko Stübner
  0 siblings, 0 replies; 39+ messages in thread
From: Heiko Stübner @ 2023-08-06 13:41 UTC (permalink / raw)
  To: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him, Stuart Yoder,
	Laurentiu Tudor, Jay Fang, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, Rob Herring
  Cc: linux-arm-kernel, linux-kernel, openbmc, linux-rockchip,
	linux-sunxi, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-aspeed, linux-pm

Am Freitag, 4. August 2023, 00:42:52 CEST schrieb Rob Herring:
> Several includes are not needed, so drop them.
> 
> of_platform.h is not needed, but it implicitly includes of.h which is
> needed.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Reviewed-by: Heiko Stuebner <heiko@sntech.de>



^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: (subset) [PATCH v2 00/23] ARM: DT include cleanups
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (22 preceding siblings ...)
  2023-08-03 22:43 ` [PATCH v2 23/23] soc: fsl: " Rob Herring
@ 2023-08-09 13:57 ` Heiko Stuebner
  2023-08-12  9:14 ` patchwork-bot+linux-soc
  24 siblings, 0 replies; 39+ messages in thread
From: Heiko Stuebner @ 2023-08-09 13:57 UTC (permalink / raw)
  To: Daniel Mack, Jay Fang, Qiang Zhao, Ulf Hansson, Benjamin Fair,
	Sascha Hauer, Jonathan Hunter, Shawn Guo, Jisheng Zhang,
	Tsahee Zidenberg, Florian Fainelli, Tali Perry, Patrice Chotard,
	Tomer Maimon, Li Yang, Liviu Dudau, Rob Herring, Viresh Kumar,
	Cristian Marussi, soc, Nick Hawkins, Patrick Venture,
	Michal Simek, Andrew Lunn, Avi Fishman, Dinh Nguyen,
	Lorenzo Pieralisi, Andrew Jeffery, Joel Stanley,
	Jean-Marie Verdun, Fabio Estevam, Nancy Yuen, Laurentiu Tudor,
	Sudeep Holla, Haojian Zhuang, AngeloGioacchino Del Regno,
	Sebastian Hesselbarth, Gregory Clement, Shiraz Has him,
	Stuart Yoder, Samuel Holland, Thierry Reding, Jernej Skrabec,
	Lubomir Rintel, Robert Jarzmik, Chen-Yu Tsai, Antoine Tenart,
	Linus Walleij, Matthias Brugger
  Cc: Heiko Stuebner, Thierry Reding, linux-rpi-kernel, linux-kernel,
	linux-pm, linux-mediatek, linux-arm-kernel, linux-rockchip,
	linux-tegra, Viresh Kumar, linux-sunxi, openbmc, linux-aspeed

On Thu, 03 Aug 2023 16:42:40 -0600, Rob Herring wrote:
> Arnd, This is all the remaining ARM and SoC related patches of DT
> include cleanups which have not be applied by sub-arch maintainers.
> 
> A few of these are v2, but most are just resends of v1.
> 
> 

Applied, thanks!

I didn't find a reply to the thread in terms of it going
in alltogether, so went forward and picked the Rockchip things
I missed before.


[12/23] ARM: rockchip: Drop unused includes
        commit: 8cbdf5d2880923070198c240534f4cca3e04dfb1
[20/23] soc: rockchip: Explicitly include correct DT includes
        commit: fc7696e2ae81404c6ca176e7ebbddd4b19c40953

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 08/23] ARM: nomadik: Drop unused includes
  2023-08-03 22:42 ` [PATCH v2 08/23] ARM: nomadik: " Rob Herring
@ 2023-08-10  8:18   ` Linus Walleij
  0 siblings, 0 replies; 39+ messages in thread
From: Linus Walleij @ 2023-08-10  8:18 UTC (permalink / raw)
  To: Rob Herring
  Cc: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Avi Fishman, Tomer Maimon, Tali Perry, Patrick Venture,
	Nancy Yuen, Benjamin Fair, Daniel Mack, Haojian Zhuang,
	Robert Jarzmik, Heiko Stuebner, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him, Stuart Yoder,
	Laurentiu Tudor, Jay Fang, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, linux-arm-kernel, linux-kernel, openbmc,
	linux-rockchip, linux-sunxi, linux-mediatek, linux-rpi-kernel,
	linux-tegra, linux-aspeed, linux-pm

On Fri, Aug 4, 2023 at 12:44 AM Rob Herring <robh@kernel.org> wrote:

> Several includes are not needed, so drop them.
>
> Signed-off-by: Rob Herring <robh@kernel.org>

Thanks for cleaning out this.

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Will you funnel this to ARM SoC with the rest?

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 13/23] ARM: versatile: Drop unused includes
  2023-08-03 22:42 ` [PATCH v2 13/23] ARM: versatile: " Rob Herring
@ 2023-08-10  8:19   ` Linus Walleij
  0 siblings, 0 replies; 39+ messages in thread
From: Linus Walleij @ 2023-08-10  8:19 UTC (permalink / raw)
  To: Rob Herring
  Cc: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Avi Fishman, Tomer Maimon, Tali Perry, Patrick Venture,
	Nancy Yuen, Benjamin Fair, Daniel Mack, Haojian Zhuang,
	Robert Jarzmik, Heiko Stuebner, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him, Stuart Yoder,
	Laurentiu Tudor, Jay Fang, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, linux-arm-kernel, linux-kernel, openbmc,
	linux-rockchip, linux-sunxi, linux-mediatek, linux-rpi-kernel,
	linux-tegra, linux-aspeed, linux-pm

On Fri, Aug 4, 2023 at 12:43 AM Rob Herring <robh@kernel.org> wrote:

> Several includes are not needed, so drop them.
>
> Signed-off-by: Rob Herring <robh@kernel.org>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 00/23] ARM: DT include cleanups
  2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
                   ` (23 preceding siblings ...)
  2023-08-09 13:57 ` (subset) [PATCH v2 00/23] ARM: DT include cleanups Heiko Stuebner
@ 2023-08-12  9:14 ` patchwork-bot+linux-soc
  24 siblings, 0 replies; 39+ messages in thread
From: patchwork-bot+linux-soc @ 2023-08-12  9:14 UTC (permalink / raw)
  To: Rob Herring; +Cc: soc

Hello:

This series was applied to soc/soc.git (for-next)
by Arnd Bergmann <arnd@arndb.de>:

On Thu, 03 Aug 2023 16:42:40 -0600 you wrote:
> Arnd, This is all the remaining ARM and SoC related patches of DT
> include cleanups which have not be applied by sub-arch maintainers.
> 
> A few of these are v2, but most are just resends of v1.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> 
> [...]

Here is the summary with links:
  - [v2,01/23] ARM: l2x0: Add explicit includes for init and types
    https://git.kernel.org/soc/soc/c/c0b736d3b578
  - [v2,02/23] ARM: sti: Drop unused includes
    https://git.kernel.org/soc/soc/c/b8678ca577e1
  - [v2,03/23] ARM: alpine: Drop unused includes
    https://git.kernel.org/soc/soc/c/17f269e70382
  - [v2,04/23] ARM: berlin: Drop unused includes
    https://git.kernel.org/soc/soc/c/fe260f5e65e1
  - [v2,05/23] ARM: dove: Drop unused includes
    https://git.kernel.org/soc/soc/c/9d2af67ba0c8
  - [v2,06/23] ARM: hpe: Drop unused includes
    https://git.kernel.org/soc/soc/c/fcd346e833e9
  - [v2,07/23] ARM: mmp: Drop unused includes
    https://git.kernel.org/soc/soc/c/89ce0a2fc143
  - [v2,08/23] ARM: nomadik: Drop unused includes
    https://git.kernel.org/soc/soc/c/23174ee58007
  - [v2,09/23] ARM: npcm: Drop unused includes
    https://git.kernel.org/soc/soc/c/152d11a0b509
  - [v2,10/23] ARM: nspire: Drop unused includes
    https://git.kernel.org/soc/soc/c/ce2ab51a1861
  - [v2,11/23] ARM: pxa: Drop unused includes
    https://git.kernel.org/soc/soc/c/48f1138f9c43
  - [v2,12/23] ARM: rockchip: Drop unused includes
    https://git.kernel.org/soc/soc/c/ab7c1ad11da4
  - [v2,13/23] ARM: versatile: Drop unused includes
    https://git.kernel.org/soc/soc/c/d6c97c96d2b4
  - [v2,14/23] ARM: mvebu: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/1402f75d9bdc
  - [v2,15/23] ARM: spear: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/544885aa0750
  - [v2,16/23] bus: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/53c5ae638da0
  - [v2,17/23] firmware: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/5b45759c0b58
  - [v2,18/23] soc: aspeed: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/96b75c9d4bf2
  - [v2,19/23] soc: mediatek: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/d01e0aec6d50
  - [v2,20/23] soc: rockchip: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/0e7ed4dda9ef
  - [v2,21/23] soc: sunxi: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/adedd5d129b1
  - [v2,22/23] soc: xilinx: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/1c37c34e2d1e
  - [v2,23/23] soc: fsl: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/5df5b2e04749

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 21/23] soc: sunxi: Explicitly include correct DT includes
  2023-08-06 11:41   ` Jernej Škrabec
@ 2023-08-22 22:30     ` Rob Herring
  2023-08-22 22:35       ` Rob Herring
  0 siblings, 1 reply; 39+ messages in thread
From: Rob Herring @ 2023-08-22 22:30 UTC (permalink / raw)
  To: Jernej Škrabec
  Cc: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, linux-arm-kernel, linux-kernel, openbmc,
	linux-rockchip, linux-sunxi, linux-mediatek, linux-rpi-kernel,
	linux-tegra, linux-aspeed, linux-pm

On Sun, Aug 6, 2023 at 6:42 AM Jernej Škrabec <jernej.skrabec@gmail.com> wrote:
>
> Dne petek, 04. avgust 2023 ob 00:43:01 CEST je Rob Herring napisal(a):
> > The DT of_device.h and of_platform.h date back to the separate
> > of_platform_bus_type before it as merged into the regular platform bus.
> > As part of that merge prepping Arm DT support 13 years ago, they
> > "temporarily" include each other. They also include platform_device.h
> > and of.h. As a result, there's a pretty much random mix of those include
> > files used throughout the tree. In order to detangle these headers and
> > replace the implicit includes with struct declarations, users need to
> > explicitly include the correct includes.
> >
> > Signed-off-by: Rob Herring <robh@kernel.org>
>
> Applied to sunxi tree, thanks!

Did you really? Doesn't look like this is in linux-next.

Rob

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH v2 21/23] soc: sunxi: Explicitly include correct DT includes
  2023-08-22 22:30     ` Rob Herring
@ 2023-08-22 22:35       ` Rob Herring
  0 siblings, 0 replies; 39+ messages in thread
From: Rob Herring @ 2023-08-22 22:35 UTC (permalink / raw)
  To: Jernej Škrabec
  Cc: soc, Patrice Chotard, Tsahee Zidenberg, Antoine Tenart,
	Jisheng Zhang, Sebastian Hesselbarth, Andrew Lunn,
	Gregory Clement, Jean-Marie Verdun, Nick Hawkins, Lubomir Rintel,
	Linus Walleij, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Heiko Stuebner, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Viresh Kumar, Shiraz Has him,
	Stuart Yoder, Laurentiu Tudor, Jay Fang, Chen-Yu Tsai,
	Samuel Holland, Cristian Marussi, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Matthias Brugger, AngeloGioacchino Del Regno,
	Florian Fainelli, Dinh Nguyen, Thierry Reding, Jonathan Hunter,
	Michal Simek, Joel Stanley, Andrew Jeffery, Ulf Hansson, Li Yang,
	Qiang Zhao, linux-arm-kernel, linux-kernel, openbmc,
	linux-rockchip, linux-sunxi, linux-mediatek, linux-rpi-kernel,
	linux-tegra, linux-aspeed, linux-pm

On Tue, Aug 22, 2023 at 5:30 PM Rob Herring <robh@kernel.org> wrote:
>
> On Sun, Aug 6, 2023 at 6:42 AM Jernej Škrabec <jernej.skrabec@gmail.com> wrote:
> >
> > Dne petek, 04. avgust 2023 ob 00:43:01 CEST je Rob Herring napisal(a):
> > > The DT of_device.h and of_platform.h date back to the separate
> > > of_platform_bus_type before it as merged into the regular platform bus.
> > > As part of that merge prepping Arm DT support 13 years ago, they
> > > "temporarily" include each other. They also include platform_device.h
> > > and of.h. As a result, there's a pretty much random mix of those include
> > > files used throughout the tree. In order to detangle these headers and
> > > replace the implicit includes with struct declarations, users need to
> > > explicitly include the correct includes.
> > >
> > > Signed-off-by: Rob Herring <robh@kernel.org>
> >
> > Applied to sunxi tree, thanks!
>
> Did you really? Doesn't look like this is in linux-next.

Sorry, it's just the genpd part that isn't since that moved.

Rob

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2023-08-22 22:36 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-03 22:42 [PATCH v2 00/23] ARM: DT include cleanups Rob Herring
2023-08-03 22:42 ` [PATCH v2 01/23] ARM: l2x0: Add explicit includes for init and types Rob Herring
2023-08-03 22:42 ` [PATCH v2 02/23] ARM: sti: Drop unused includes Rob Herring
2023-08-04 15:02   ` Patrice CHOTARD
2023-08-03 22:42 ` [PATCH v2 03/23] ARM: alpine: " Rob Herring
2023-08-03 22:42 ` [PATCH v2 04/23] ARM: berlin: " Rob Herring
2023-08-06  9:26   ` Jisheng Zhang
2023-08-03 22:42 ` [PATCH v2 05/23] ARM: dove: " Rob Herring
2023-08-03 22:42 ` [PATCH v2 06/23] ARM: hpe: " Rob Herring
2023-08-03 22:42 ` [PATCH v2 07/23] ARM: mmp: " Rob Herring
2023-08-03 22:42 ` [PATCH v2 08/23] ARM: nomadik: " Rob Herring
2023-08-10  8:18   ` Linus Walleij
2023-08-03 22:42 ` [PATCH v2 09/23] ARM: npcm: " Rob Herring
2023-08-03 22:42 ` [PATCH v2 10/23] ARM: nspire: " Rob Herring
2023-08-03 22:42 ` [PATCH v2 11/23] ARM: pxa: " Rob Herring
2023-08-03 22:42 ` [PATCH v2 12/23] ARM: rockchip: " Rob Herring
2023-08-06 13:41   ` Heiko Stübner
2023-08-03 22:42 ` [PATCH v2 13/23] ARM: versatile: " Rob Herring
2023-08-10  8:19   ` Linus Walleij
2023-08-03 22:42 ` [PATCH v2 14/23] ARM: mvebu: Explicitly include correct DT includes Rob Herring
2023-08-03 22:42 ` [PATCH v2 15/23] ARM: spear: " Rob Herring
2023-08-03 22:42 ` [PATCH v2 16/23] bus: " Rob Herring
2023-08-04 15:11   ` Laurentiu Tudor
2023-08-04 19:08   ` Jernej Škrabec
2023-08-03 22:42 ` [PATCH v2 17/23] firmware: " Rob Herring
2023-08-04  9:51   ` Sudeep Holla
2023-08-03 22:42 ` [PATCH v2 18/23] soc: aspeed: " Rob Herring
2023-08-03 22:42 ` [PATCH v2 19/23] soc: mediatek: " Rob Herring
2023-08-03 22:43 ` [PATCH v2 20/23] soc: rockchip: " Rob Herring
2023-08-03 22:43 ` [PATCH v2 21/23] soc: sunxi: " Rob Herring
2023-08-04 14:38   ` Jernej Škrabec
2023-08-06 11:41   ` Jernej Škrabec
2023-08-22 22:30     ` Rob Herring
2023-08-22 22:35       ` Rob Herring
2023-08-03 22:43 ` [PATCH v2 22/23] soc: xilinx: " Rob Herring
2023-08-04  6:51   ` Michal Simek
2023-08-03 22:43 ` [PATCH v2 23/23] soc: fsl: " Rob Herring
2023-08-09 13:57 ` (subset) [PATCH v2 00/23] ARM: DT include cleanups Heiko Stuebner
2023-08-12  9:14 ` patchwork-bot+linux-soc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).