Devicetree
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: am33xx: avoid invalid OCP device-link for timer1 and timer2
@ 2026-07-01 17:56 Wagner Popov dos Santos
  2026-07-01 18:21 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Wagner Popov dos Santos @ 2026-07-01 17:56 UTC (permalink / raw)
  To: linux-omap; +Cc: devicetree, Bin Liu, Wagner Popov dos Santos

This patch fixes boot-time fw_devlink errors on AM335x/UCC3 caused
by invalid device-link creation attempts involving timer1/timer2
and supplier ocp.

Observed kernel log messages:

  ti-sysc 44e31000.target-module: Failed to create device link (0x180)
  with supplier ocp for
  /ocp/interconnect@44c00000/segment@200000/target-module@31000/timer@0

  ti-sysc 48040000.target-module: Failed to create device link (0x180)
  with supplier ocp for
  /ocp/interconnect@48000000/segment@0/target-module@40000/timer@0

The change updates dependency handling for timer1 and timer2 so the
kernel no longer attempts this invalid link-creation path during
initialization of supplier ocp.

Impact:

- Removes the two ti-sysc/fw_devlink error messages at boot
- Preserves current timer and clock assignment behavior
- No functional regression observed in boot and timer operation tests

Signed-off-by: Wagner Popov dos Santos <wpopov@gmail.com>
---
 arch/arm/boot/dts/ti/omap/am33xx.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/ti/omap/am33xx.dtsi b/arch/arm/boot/dts/ti/omap/am33xx.dtsi
index ca3e7f5d7d0dc..760598d5ae1c9 100644
--- a/arch/arm/boot/dts/ti/omap/am33xx.dtsi
+++ b/arch/arm/boot/dts/ti/omap/am33xx.dtsi
@@ -708,6 +708,7 @@ &timer1_target {
 	timer@0 {
 		assigned-clocks = <&timer1_fck>;
 		assigned-clock-parents = <&sys_clkin_ck>;
+		post-init-providers = <&ocp>;
 	};
 };
 
@@ -721,5 +722,6 @@ &timer2_target {
 	timer@0 {
 		assigned-clocks = <&timer2_fck>;
 		assigned-clock-parents = <&sys_clkin_ck>;
+		post-init-providers = <&ocp>;
 	};
 };
-- 
2.43.0


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

* Re: [PATCH] ARM: dts: am33xx: avoid invalid OCP device-link for timer1 and timer2
  2026-07-01 17:56 [PATCH] ARM: dts: am33xx: avoid invalid OCP device-link for timer1 and timer2 Wagner Popov dos Santos
@ 2026-07-01 18:21 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-07-01 18:21 UTC (permalink / raw)
  To: Wagner Popov dos Santos; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Using the undocumented, Linux-internal `post-init-providers` property to silence an OS warning.
--

commit be227235cebc7285a11a56bcbf6975ef2b78f927
Author: Wagner Popov dos Santos <wpopov@gmail.com>
ARM: dts: am33xx: avoid invalid OCP device-link for timer1 and timer2

This patch updates dependency handling for timer1 and timer2 on AM335x/UCC3.
It adds post-init-providers to the device nodes to avoid boot-time
fw_devlink errors caused by invalid link-creation attempts.

> diff --git a/arch/arm/boot/dts/ti/omap/am33xx.dtsi b/arch/arm/boot/dts/ti/omap/am33xx.dtsi
> index ca3e7f5d7d0dc..760598d5ae1c9 100644
> --- a/arch/arm/boot/dts/ti/omap/am33xx.dtsi
> +++ b/arch/arm/boot/dts/ti/omap/am33xx.dtsi
> @@ -708,6 +708,7 @@ &timer1_target {
>  	timer@0 {
>  		assigned-clocks = <&timer1_fck>;
>  		assigned-clock-parents = <&sys_clkin_ck>;
> +		post-init-providers = <&ocp>;

[Severity: Medium]
Does this introduce a regression by using an undocumented Linux-specific
property in the Device Tree to silence an OS warning here in timer1_target?

Since Device Tree is intended to be an OS-agnostic hardware description,
adding this internal Linux fw_devlink mechanism pollutes the DT with an
OS-specific probing workaround.

Would it be better to fix this regression in the driver core instead?

Perhaps patching fw_devlink_create_devlink() to gracefully skip link creation
when the resolved supplier is an ancestor of the consumer would address the
root cause without adding OS-specific properties to the DT.

>  	};
>  };
>  
> @@ -721,5 +722,6 @@ &timer2_target {
>  	timer@0 {
>  		assigned-clocks = <&timer2_fck>;
>  		assigned-clock-parents = <&sys_clkin_ck>;
> +		post-init-providers = <&ocp>;

[Severity: Medium]
Does this node for timer2_target introduce the same regression mentioned
above?

>  	};
>  };

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260701175647.8694-1-wpopov@gmail.com?part=1

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

end of thread, other threads:[~2026-07-01 18:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 17:56 [PATCH] ARM: dts: am33xx: avoid invalid OCP device-link for timer1 and timer2 Wagner Popov dos Santos
2026-07-01 18:21 ` sashiko-bot

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