From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796490730; b=CWWkNChGQbAX0rs9MW6JbqAAOmZx00PQASUdeaqwQs9u1oJdxTo9F3YsjBESbjKiLvLr vfh6iHRFQcwtI+C7p7fPhfIaQEPp0SoMXefvw1F07+omQwhRFI6gwRQDW+OG/J3j6dKVb oCOBjFswKDsWVGWz9XS4J4ybnkz3GJyQTsxVpGgmigktGypDE+GB7fzbq9RUUr4I+MtqE PN5vJUj5ojuDv4tSHs3m//k3rn4KTmQWAdjDKdtMQmFRIo3HuuVAghwBEA8ztyus+uwYW XDh1E5ph08qBfdEyz1gi8LCC75vyKLlQgCguGD7anKOcanLYfvY3DX5x+TJ9czb5R0A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796490730; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=JFOZGGR6R1AsGVoicq63MAcur75tQtaatKVQZROATfw=; b=GCOi/HXwiBKSCaIuvqtPd28yW2isELO7oza0XxLk3pxkrnVmLk4LAm+pA5SsIUE+AQZZ ycSNHXBhP3adAKtJL85n6BX9v7stJRKNoYRMammMebym30pM5iyAELvJvlFpZCxqEPIXG P236eyNcLjuTnOdF/S+lKm9RUEgQ6FoKhDyQ/P9L8OzLnm9NM8A4zOcjXdJnOsuKTRNvk Kj6Xh1uVNRGXeGYwDPxV5p5jBws67SXY5etcVAV8y4f71QbPZjP7/XH6rnIBDAixWtFCO oA8CcGRdAojuRGBOGteugH/drhUxPDpnzCkFA0X30hQkcwo0rLtox+TtlgZX/Qc/qsg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LljcMBFx; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8D60606A31F; Sat, 5 Dec 2026 17:12:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LljcMBFx Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D7F61F0092B; Sat, 5 Dec 2026 17:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796490729; bh=JFOZGGR6R1AsGVoicq63MAcur75tQtaatKVQZROATfw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=LljcMBFx/HvPHKkwSnu66O/IeXTnlO4NQJ40AqXFsNm6OUBG01/v3eT0e8LDzf67C PO9rmLYYwk3Yc3Fb/wyAP+QATjWPJfwl4BO1zcD73w+vd31+3191SFF3FMtLNXjyHf yWu9mCMBCR0Gg6vak54RhFS8o8hFzSULTb1PFqXSq32Z06fqUz2mI4DXTNAhGMYK6W jlkZ6nfCe6h28wpdoGThrDatdQub6KS32l1iYQJAy8bnhaLZjWSLpxGYgVv7uXTTLh lTd7LLdwCV2RIl88t9oaU5gHkUiWW6opc1ORfSbJZC62SZ/ELacaKfV6JRmomleHE3 lu330/gbSW8FA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] serial: sh-sci: Add support for RZ/T2N RSCI Reply-To: sashiko-reviews@lists.linux.dev To: "Biju Das" Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, wsa+renesas@sang-engineering.com In-Reply-To: <20261205-t2n_serial_bindings-v1-2-7d98125dce02@bp.renesas.com> References: <20261205-t2n_serial_bindings-v1-0-7d98125dce02@bp.renesas.com> <20261205-t2n_serial_bindings-v1-2-7d98125dce02@bp.renesas.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 17:12:08 +0000 X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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(stru= ct earlycon_device *device, > return scix_early_console_setup(device, &of_rsci_rzt2h_data); > } > =20 > +OF_EARLYCON_DECLARE(rsci, "renesas,r9a07g076-rsci", rsci_rzt2h_early_con= sole_setup); > OF_EARLYCON_DECLARE(rsci, "renesas,r9a08g046-rsci", rsci_rzg3l_early_con= sole_setup); > OF_EARLYCON_DECLARE(rsci, "renesas,r9a09g047-rsci", rsci_rzg3e_early_con= sole_setup); > OF_EARLYCON_DECLARE(rsci, "renesas,r9a09g077-rsci", rsci_rzt2h_early_con= sole_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 =3D { > .data =3D &of_sci_scif_rzv2h, > }, > #ifdef CONFIG_SERIAL_RSCI > + { > + .compatible =3D "renesas,r9a07g076-rsci", > + .data =3D &of_rsci_rzt2h_data, > + }, > { > .compatible =3D "renesas,r9a08g046-rsci", > .data =3D &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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205-t2n_serial= _bindings-v1-0-7d98125dce02@bp.renesas.com?part=3D2