From: sashiko-bot@kernel.org
To: "Biju Das" <biju.das.au@gmail.com>
Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org,
wsa+renesas@sang-engineering.com
Subject: Re: [PATCH 2/2] serial: sh-sci: Add support for RZ/T2N RSCI
Date: Sat, 05 Dec 2026 17:12:08 +0000 [thread overview]
Message-ID: <sashiko-outbox-251755@kernel.org> (raw)
In-Reply-To: <20261205-t2n_serial_bindings-v1-2-7d98125dce02@bp.renesas.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] serial: sh-sci: RZ/T2N clock claim unsupported by
rsci_set_termios()
--
commit 05c1400238002902941cd903784bfd2cd2a1ac11
Author: Biju Das <biju.das.jz@bp.renesas.com>
serial: sh-sci: Add support for RZ/T2N RSCI
This commit adds the OF match entry and earlycon declaration for the
RZ/T2N (R9A07G076) RSCI, reusing the RZ/T2H RSCI configuration data.
> diff --git a/drivers/tty/serial/rsci.c b/drivers/tty/serial/rsci.c
> index 40db9daa4272d..fe947826f52cc 100644
> --- a/drivers/tty/serial/rsci.c
> +++ b/drivers/tty/serial/rsci.c
> @@ -725,6 +725,7 @@ static int __init rsci_rzt2h_early_console_setup(struct earlycon_device *device,
> return scix_early_console_setup(device, &of_rsci_rzt2h_data);
> }
>
> +OF_EARLYCON_DECLARE(rsci, "renesas,r9a07g076-rsci", rsci_rzt2h_early_console_setup);
> OF_EARLYCON_DECLARE(rsci, "renesas,r9a08g046-rsci", rsci_rzg3l_early_console_setup);
> OF_EARLYCON_DECLARE(rsci, "renesas,r9a09g047-rsci", rsci_rzg3e_early_console_setup);
> OF_EARLYCON_DECLARE(rsci, "renesas,r9a09g077-rsci", rsci_rzt2h_early_console_setup);
> diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
> index bd58bbfa65aa7..5ae02b88699eb 100644
> --- a/drivers/tty/serial/sh-sci.c
> +++ b/drivers/tty/serial/sh-sci.c
> @@ -3667,6 +3667,10 @@ static const struct of_device_id of_sci_match[] __maybe_unused = {
> .data = &of_sci_scif_rzv2h,
> },
> #ifdef CONFIG_SERIAL_RSCI
> + {
> + .compatible = "renesas,r9a07g076-rsci",
> + .data = &of_rsci_rzt2h_data,
> + },
> {
> .compatible = "renesas,r9a08g046-rsci",
> .data = &of_rsci_rzg3l_data,
[Severity: Medium]
Is RZ/T2N external-clock handling missing here, or is the commit message
inaccurate?
The commit message states that a separate compatible is needed because
the RZ/T2N serial clock is fed by a CPG mux selecting between PLL1/PLL4
and an external clock, and that the driver can determine from the clock
frequency whether the external clock is in use.
However, both entries reuse the RZ/T2H data verbatim. sci_port_enable()
only reads clk_get_rate() into clk_rates[SCI_FCK], and rsci_set_termios()
always runs sci_scbrr_calc() on SCI_FCK and writes CCR3_INIT | CCR3_FM
without inspecting the frequency or setting CCR3_CKE1/CCR3_CKE0.
If RZ/T2N requires distinct clock or register setup when the external
clock is selected, reusing of_rsci_rzt2h_data will break baud-rate
configuration in that mode.
If CCF hides the CPG mux completely so the programming model matches
RZ/T2H, the commit message should be corrected and RZ/T2N could fall
back to renesas,r9a09g077-rsci instead of adding standalone match and
earlycon entries.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-t2n_serial_bindings-v1-0-7d98125dce02@bp.renesas.com?part=2
prev parent reply other threads:[~2026-12-05 17:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 16:56 [PATCH 0/2] Add RSCI support for RZ/T2N Biju Das
2026-12-05 16:56 ` [PATCH 1/2] dt-bindings: serial: renesas,rsci: Document RZ/T2N support Biju Das
2026-12-05 17:10 ` sashiko-bot
2026-12-05 16:56 ` [PATCH 2/2] serial: sh-sci: Add support for RZ/T2N RSCI Biju Das
2026-12-05 17:12 ` sashiko-bot [this message]
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-251755@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=biju.das.au@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox