From: Jiri Slaby <jirislaby@kernel.org>
To: Biju <biju.das.au@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Biju Das <biju.das.jz@bp.renesas.com>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2 12/13] serial: sh-sci: Add support for RZ/G3E RSCI SCIF
Date: Fri, 31 Oct 2025 05:50:56 +0100 [thread overview]
Message-ID: <19a08b75-13ca-45f9-884d-f96602336dfd@kernel.org> (raw)
In-Reply-To: <20251030175811.607137-13-biju.das.jz@bp.renesas.com>
Hi,
On 30. 10. 25, 18:58, Biju wrote:
> From: Biju Das <biju.das.jz@bp.renesas.com>
>
> Add support for RZ/G3E RSCI SCIF(a.k.a FIFO mode). RSCI IP found on the
> RZ/G3E SoC is similar to RZ/T2H, but it has a 32-stage FIFO. it has 6
> clocks(5 module clocks + 1 external clock) instead of 3 clocks(2 module
> clocks + 1 external clock) on T2H and has multiple resets. Add support
> for the hardware flow control.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
...
> --- a/drivers/tty/serial/rsci.c
> +++ b/drivers/tty/serial/rsci.c
> @@ -11,6 +11,8 @@
...
> +static void rsci_finish_console_write(struct uart_port *port, u32 ctrl)
> +{
> + rsci_serial_out(port, CCR0, ctrl & ~CCR0_TE);
> + cpu_relax();
What's the intent of cpu_relax in here? It does not make much sense to
me. If you need delay, use delay.
> + rsci_serial_out(port, CCR0, ctrl);
> +}
> +
...
> diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
> index fac83dace27c..85b89c1ebf15 100644
> --- a/drivers/tty/serial/sh-sci.c
> +++ b/drivers/tty/serial/sh-sci.c
> @@ -3397,7 +3397,7 @@ static void sci_remove(struct platform_device *dev)
> if (s->port.fifosize > 1)
> device_remove_file(&dev->dev, &dev_attr_rx_fifo_trigger);
> if (type == PORT_SCIFA || type == PORT_SCIFB || type == PORT_HSCIF ||
> - type == SCI_PORT_RSCI)
> + type == SCI_PORT_RSCI || type == RSCI_PORT_SCIF)
> device_remove_file(&dev->dev, &dev_attr_rx_fifo_timeout);
...
> @@ -3759,7 +3763,8 @@ static int sci_probe(struct platform_device *dev)
> return ret;
> }
> if (sp->type == PORT_SCIFA || sp->type == PORT_SCIFB ||
> - sp->type == PORT_HSCIF || sp->type == SCI_PORT_RSCI) {
> + sp->type == PORT_HSCIF || sp->type == SCI_PORT_RSCI ||
> + sp->type == RSCI_PORT_SCIF) {
This test is duplicated -- you seem you need a helper for this.
thanks,
--
js
suse labs
next prev parent reply other threads:[~2025-10-31 4:51 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-30 17:57 [PATCH v2 00/13] Add RZ/G3E RSCI support Biju
2025-10-30 17:57 ` [PATCH v2 01/13] dt-bindings: serial: renesas,rsci: Document RZ/G3E support Biju
2025-10-30 19:20 ` Conor Dooley
2025-10-30 17:57 ` [PATCH v2 02/13] serial: rsci: Drop rsci_clear_CFC() Biju
2025-10-30 17:57 ` [PATCH v2 03/13] serial: sh-sci: Drop extra lines Biju
2025-10-30 20:21 ` Hugo Villeneuve
2025-10-31 7:06 ` Biju Das
2025-10-31 7:08 ` Biju Das
2025-10-31 14:34 ` Hugo Villeneuve
2025-10-30 17:57 ` [PATCH v2 04/13] serial: rsci: Drop unused macro DCR Biju
2025-10-30 17:57 ` [PATCH v2 05/13] serial: rsci: Drop unused TDR register Biju
2025-10-30 17:57 ` [PATCH v2 06/13] serial: sh-sci: Use devm_reset_control_array_get_exclusive() Biju
2025-10-30 17:57 ` [PATCH v2 07/13] serial: sh-sci: Add RSCI_PORT_{SCI,SCIF} port IDs Biju
2025-10-30 17:57 ` [PATCH v2 08/13] serial: sh-sci: Add sci_is_rsci_type() Biju
2025-10-30 17:57 ` [PATCH v2 09/13] serial: sh-sci: Add support for RZ/G3E RSCI clks Biju
2025-10-30 17:57 ` [PATCH v2 10/13] serial: sh-sci: Make sci_scbrr_calc() public Biju
2025-10-30 17:57 ` [PATCH v2 11/13] serial: sh-sci: Add finish_console_write() callback Biju
2025-10-30 17:58 ` [PATCH v2 12/13] serial: sh-sci: Add support for RZ/G3E RSCI SCIF Biju
2025-10-31 4:50 ` Jiri Slaby [this message]
2025-10-31 7:16 ` Biju Das
2025-10-30 17:58 ` [PATCH v2 13/13] serial: sh-sci: Add support for RZ/G3E RSCI SCI Biju
-- strict thread matches above, loose matches on Subject: below --
2025-10-30 17:55 [PATCH v2 00/13] Add RZ/G3E RSCI support Biju
2025-10-30 17:55 ` [PATCH v2 12/13] serial: sh-sci: Add support for RZ/G3E RSCI SCIF Biju
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=19a08b75-13ca-45f9-884d-f96602336dfd@kernel.org \
--to=jirislaby@kernel.org \
--cc=biju.das.au@gmail.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=geert+renesas@glider.be \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--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