From: sashiko-bot@kernel.org
To: "Fil Dunsky" <filipp.dunsky@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 1/3] ARM: dts: cortina: Describe CS7542 peripheral controllers
Date: Sat, 05 Dec 2026 20:08:41 +0000 [thread overview]
Message-ID: <sashiko-outbox-251877@kernel.org> (raw)
In-Reply-To: <20261205-b4-cs7542-peripherals-dts-v4-1-f4e93d42533a@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] ARM: dts: cortina: global clk migration breaks boot when
COMMON_CLK_CS7542=n
--
commit e9270d7acecebeaf6d81ee437ed7b70fb2a55ff2
Author: Fil Dunsky <filipp.dunsky@gmail.com>
ARM: dts: cortina: Describe CS7542 peripheral controllers
This commit adds device tree nodes for the CS7542 peripheral controllers,
replaces the fixed APB clock with the global syscon clock provider, and
updates the existing UART, timer, and watchdog nodes to use it.
> diff --git a/arch/arm/boot/dts/cortina/cs7542.dtsi b/arch/arm/boot/dts/cortina/cs7542.dtsi
> index 29b0b7da86670..3d827502c9b90 100644
> --- a/arch/arm/boot/dts/cortina/cs7542.dtsi
> +++ b/arch/arm/boot/dts/cortina/cs7542.dtsi
[ ... ]
> @@ -99,21 +400,21 @@ timer@f8000200 {
> compatible = "arm,cortex-a9-global-timer";
> reg = <0xf8000200 0x20>;
> interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
> - clocks = <&apb_clk>;
> + clocks = <&global CS7542_CLK_APB>;
> };
>
> timer@f8000600 {
> compatible = "arm,cortex-a9-twd-timer";
> reg = <0xf8000600 0x20>;
> interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
> - clocks = <&apb_clk>;
> + clocks = <&global CS7542_CLK_APB>;
> };
>
> watchdog@f8000620 {
> compatible = "arm,cortex-a9-twd-wdt";
> reg = <0xf8000620 0x20>;
> interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
> - clocks = <&apb_clk>;
> + clocks = <&global CS7542_CLK_APB>;
> };
[Severity: High]
Does switching the timers and console UART from apb_clk to &global break
boot when CONFIG_COMMON_CLK_CS7542 is not enabled?
ARCH_CORTINA_ACCESS selects ARM_GLOBAL_TIMER and HAVE_ARM_TWD, but neither
selects COMMON_CLK_CS7542 nor defaults it to y. Without a clock provider
for &global, global_timer_of_register() fails of_clk_get() and
twd_calibrate_rate() spins forever waiting for jiffies in late_time_init().
Similarly, intc and gpio0..4 are enabled while CS75XX_INTC is not selected
or defaulted by ARCH_CORTINA_ACCESS, causing cs75xx_gpio_probe() to
permanently defer on platform_get_irq().
Commit "ARM: multi_v7_defconfig: Enable CS7542 board peripherals" later
enables both options in multi_v7_defconfig, but that leaves a two-commit
bisection hang and still breaks non-multi_v7_defconfig builds or
olddefconfig upgrades.
Selecting COMMON_CLK_CS7542 and CS75XX_INTC from ARCH_CORTINA_ACCESS (or
setting default ARCH_CORTINA_ACCESS on them) before removing apb_clk would
avoid this regression.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-b4-cs7542-peripherals-dts-v4-0-f4e93d42533a@gmail.com?part=1
next prev parent reply other threads:[~2026-12-05 20:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 19:51 [PATCH v4 0/3] ARM: dts: cortina: Enable CS7542 Almond+ peripherals Fil Dunsky
2026-12-05 19:51 ` Fil Dunsky via B4 Relay
2026-12-05 19:51 ` [PATCH v4 1/3] ARM: dts: cortina: Describe CS7542 peripheral controllers Fil Dunsky
2026-12-05 19:51 ` Fil Dunsky via B4 Relay
2026-12-05 20:08 ` sashiko-bot [this message]
2026-12-05 19:51 ` [PATCH v4 2/3] ARM: dts: cortina: Enable Almond+ board peripherals Fil Dunsky
2026-12-05 19:51 ` Fil Dunsky via B4 Relay
2026-12-05 20:08 ` sashiko-bot
2026-12-05 19:51 ` [PATCH v4 3/3] ARM: multi_v7_defconfig: Enable CS7542 " Fil Dunsky
2026-12-05 19:51 ` Fil Dunsky via B4 Relay
2026-12-05 20:03 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-251877@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=filipp.dunsky@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.