mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ARM: omap: omap_hwmod: do not WARN() on missing nodes for hwmods
@ 2026-10-31 12:05 Andreas Kemnade
  0 siblings, 0 replies; only message in thread
From: Andreas Kemnade @ 2026-10-31 12:05 UTC (permalink / raw)
  To: paul, aaro.koskinen, andreas, khilman, rogerq, tony, linux,
	linux-omap, linux-arm-kernel, linux-kernel

If devices are converted from hwmod to ti-sysc, there might be an interim
state with the hwmod data still present but the devicetree not referencing
the hwmod. In such cases, the hwmod device data is still there,
the hwmod infrastructure does ignore that device but prints out a big
alarming WARN().
Be more silent in that case to avoid needing putting devicetree and
code changes into one patch but into one series, only require the
hwmod cleanup to come after the devicetree conversion.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
 arch/arm/mach-omap2/omap_hwmod.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index 03cd523dff87..a67442a6a2c6 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -2329,8 +2329,10 @@ static int __init _init(struct omap_hwmod *oh, void *data)
 
 	r = _init_mpu_rt_base(oh, NULL, index, np);
 	if (r < 0) {
-		WARN(1, "omap_hwmod: %s: doesn't have mpu register target base\n",
-		     oh->name);
+		/* there might be a transition ongoing from hwmod to ti-sys */
+		if (np)
+			WARN(1, "omap_hwmod: %s: doesn't have mpu register target base\n",
+			     oh->name);
 		r = 0;
 		goto out_put_node;
 	}
-- 
2.47.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-31 12:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-31 12:05 [PATCH] ARM: omap: omap_hwmod: do not WARN() on missing nodes for hwmods Andreas Kemnade

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

all inboxes | Powered by JetHome®