public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] soc: remove direct accesses to of_root from drivers/soc/
@ 2026-01-19 10:40 Bartosz Golaszewski
  2026-01-19 10:40 ` [PATCH 1/8] of: provide of_machine_get_compatible() Bartosz Golaszewski
                   ` (7 more replies)
  0 siblings, 8 replies; 27+ messages in thread
From: Bartosz Golaszewski @ 2026-01-19 10:40 UTC (permalink / raw)
  To: Rob Herring, Saravana Kannan, Greg Kroah-Hartman,
	Rafael J. Wysocki, Danilo Krummrich, Christophe Leroy (CS GROUP),
	Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Geert Uytterhoeven, Magnus Damm, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland
  Cc: devicetree, linux-kernel, linuxppc-dev, linux-arm-kernel, imx,
	linux-renesas-soc, linux-sunxi, Bartosz Golaszewski

linux/of.h declares a set of variables providing addresses of certain
key OF nodes. The pointers being variables can't profit from stubs
provided for when CONFIG_OF is disabled which means that drivers
accessing these variables can't profit from CONFIG_COMPILE_TEST=y
coverage.

There are drivers under drivers/soc/ that access the of_root node. This
series introduces a new OF helper for reading the machine compatible
string, exports an existing SoC helper that reads the machine string
from the root node and finally replaces all direct accesses to of_root
with new or already existing helper functions.

Merging strategy: other than patch 1, everything else can go via the SoC
tree. I suggest Rob taking patch 1 for v7.0 through the OF tree and the
rest can be picked up after v7.0-rc1 is tagged.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Bartosz Golaszewski (8):
      of: provide of_machine_get_compatible()
      base: soc: order includes alphabetically
      base: soc: export soc_device_get_machine()
      soc: fsl: guts: don't access of_root directly
      soc: imx8m: don't access of_root directly
      soc: imx9: don't access of_root directly
      soc: renesas: don't access of_root directly
      soc: sunxi: mbus: don't access of_root directly

 drivers/base/soc.c                | 26 ++++++++++++++------------
 drivers/of/base.c                 | 13 +++++++++++++
 drivers/soc/fsl/guts.c            | 12 +++---------
 drivers/soc/imx/soc-imx8m.c       | 11 +++--------
 drivers/soc/imx/soc-imx9.c        |  4 ++--
 drivers/soc/renesas/renesas-soc.c |  7 ++++++-
 drivers/soc/sunxi/sunxi_mbus.c    |  2 +-
 include/linux/of.h                |  2 ++
 include/linux/sys_soc.h           | 10 ++++++++++
 9 files changed, 54 insertions(+), 33 deletions(-)
---
base-commit: 46fe65a2c28ecf5df1a7475aba1f08ccf4c0ac1b
change-id: 20260119-soc-of-root-77c86c54010f

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>


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

end of thread, other threads:[~2026-02-23 13:46 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 10:40 [PATCH 0/8] soc: remove direct accesses to of_root from drivers/soc/ Bartosz Golaszewski
2026-01-19 10:40 ` [PATCH 1/8] of: provide of_machine_get_compatible() Bartosz Golaszewski
2026-01-19 11:06   ` Christophe Leroy (CS GROUP)
2026-01-19 11:26   ` Danilo Krummrich
2026-01-19 13:00     ` Bartosz Golaszewski
2026-01-19 13:20       ` Danilo Krummrich
2026-01-19 19:17   ` Geert Uytterhoeven
2026-01-19 10:40 ` [PATCH 2/8] base: soc: order includes alphabetically Bartosz Golaszewski
2026-01-19 11:07   ` Christophe Leroy (CS GROUP)
2026-01-19 10:40 ` [PATCH 3/8] base: soc: export soc_device_get_machine() Bartosz Golaszewski
2026-01-19 11:08   ` Christophe Leroy (CS GROUP)
2026-01-19 11:36   ` Danilo Krummrich
2026-01-19 18:41     ` Danilo Krummrich
2026-01-19 19:23   ` Geert Uytterhoeven
2026-01-19 10:40 ` [PATCH 4/8] soc: fsl: guts: don't access of_root directly Bartosz Golaszewski
2026-01-19 11:05   ` LEROY Christophe
2026-01-19 11:06   ` Christophe Leroy (CS GROUP)
2026-01-19 10:40 ` [PATCH 5/8] soc: imx8m: " Bartosz Golaszewski
2026-01-19 10:40 ` [PATCH 6/8] soc: imx9: " Bartosz Golaszewski
2026-01-27  2:39   ` Peng Fan
2026-01-19 10:40 ` [PATCH 7/8] soc: renesas: " Bartosz Golaszewski
2026-01-19 19:25   ` Geert Uytterhoeven
2026-02-23 13:45     ` Bartosz Golaszewski
2026-01-19 10:40 ` [PATCH 8/8] soc: sunxi: mbus: " Bartosz Golaszewski
2026-01-19 15:36   ` Jernej Škrabec
2026-01-20  7:55   ` Chen-Yu Tsai
2026-01-20  8:08     ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox