ARM: omap: omap_hwmod: do not WARN() on missing nodes for hwmods
Subsystems (4)
Andreas Kemnade
maintainerPATCH 1/1 ARM: omap: omap_hwmod: do not WARN() on missing nodes for hwmods
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.
--- arch/arm/mach-omap2/omap_hwmod.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/omap_hwmod.c +4 -2
@@ -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; }
Signature · 1 line
2.47.3
Quoted 10 lines · Andreas Kemnade
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.[...]
Applied, thanks!
[1/1] ARM: omap: omap_hwmod: do not WARN() on missing nodes for hwmods
commit: 540f8176aaa989b08eb66e4d5c4d4ea9093c1f80
Best regards,
Signature · 1 line
Kevin Hilman (TI) <[email protected]>