mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Diogo Ivo <diogo.ivo.sx@renesas.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>
Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org,
	Biju Das <biju.das.jz@bp.renesas.com>,
	Au Dang <au.dang.jx@renesas.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Wolfram Sang <wsa+renesas@sang-engineering.com>,
	Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	Thierry Bultel <thierry.bultel.yh@bp.renesas.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH v5 0/7] Fix transmit handling on SCI/RSCI ports
Date: Mon, 30 Nov 2026 10:16:26 +0000	[thread overview]
Message-ID: <6b9ff20b-992d-4c3c-a26a-28a3cc809e7c@renesas.com> (raw)
In-Reply-To: <20261117-g2ul_sci-v5-0-30b58ea18923@renesas.com>

Hi all,

On 11/17/2026 11:40 PM, Diogo Ivo wrote:
> Hi all,
> 
> This is v5 of the SCI/RSCI transmit fixes originally posted by Biju
> Das. Patches 1, 5 and 6 retain the v3 code and descriptions from Biju
> and Au Dang, patch 2 is updated to address v4 review feedback, and
> patches 3, 4 and 7 incorporate additional RSCI fixes.
> 
> The series addresses transmit stalls, duplicated output and spurious
> interrupts on the SCI (PORT_SCI) and RSCI ports of the sh-sci driver:
> 
>   - Patch 1 removes the code that disables TE at the end of a
>     transmission on SCI, which the hardware manual does not describe.
>   - Patch 2 stops the TEI handler from turning the transmitter off
>     while hardware or software TX data is still pending, which could
>     stall or cut off output. It also covers the TE handling that patch 1
>     no longer does in sci_transmit_chars().
>   - Patch 3 enables TEIE in rsci_stop_tx() when TE is set, allowing
>     transmit-end handling to clear TE after the hardware FIFO drains.
>   - Patch 4 avoids kicking RSCI transmission from the receive-error
>     handler, which could otherwise cause spurious TEI interrupts or
>     leave the transmitter in a state that stalls later output.
>   - Patch 5 skips the software clear of the TDxE flag on SCI, since
>     hardware clears it on a TDR write and the extra clear caused a
>     spurious TXI and a duplicated last character.
>   - Patch 6 forces a TE toggle when restoring SCSCR in the console
>     write path on SCI, so the TXI that restarts an interrupted drain is
>     generated. Without it the RZ/G2UL console can hang during boot.
>   - Patch 7 simplifies rsci_transmit_chars() now that the receive-error
>     handler no longer invokes it, and reuses rsci_stop_tx().
> 
> OpenCode (GPT-6.1 Sol and Gemini 4 Argon) assisted with reviewing the
> previous discussion, preparing and reordering this series, updating
> trailers and recipients, and drafting this cover letter, as well as
> helping debug the various edge cases and proposing code changes.
> 
> Changes in v5:
>   * Patch 2:
>     - Make the commit message more succinct.
>     - Drop unused tie and teie initializers from sci_scif_port_params_bits.
>     - Enable SCSCR.TEIE in sci_stop_tx() on PORT_SCI and call
>       sci_stop_tx() in sci_transmit_chars() when empty or stopped.
>     - Check poll_sent_bits in sci_tx_end_interrupt() before acting on TEI.
>     - Prevent sci_tx_end_interrupt() from restarting TX during suspend.
> - Link to v4: https://patch.msgid.link/20261113-g2ul_sci-v4-0-6815e41d90c5@renesas.com

Gentle ping on this series.

Thanks,
Diogo

      parent reply	other threads:[~2026-11-30 10:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 23:40 Diogo Ivo
2026-11-17 23:40 ` [PATCH v5 1/7] serial: sh-sci: Drop TE disable at end of transmission on SCI Diogo Ivo
2026-11-17 23:40 ` [PATCH v5 2/7] serial: sh-sci: Keep TX enabled on TEI while data is pending Diogo Ivo
2026-11-17 23:40 ` [PATCH v5 3/7] serial: rsci: Enable transmit end interrupt in rsci_stop_tx() Diogo Ivo
2026-11-17 23:40 ` [PATCH v5 4/7] serial: sh-sci: Do not kick TX from sci_er_interrupt() on RSCI Diogo Ivo
2026-11-17 23:40 ` [PATCH v5 5/7] serial: sh-sci: Skip TDxE clear when hardware clears it automatically Diogo Ivo
2026-11-17 23:40 ` [PATCH v5 6/7] serial: sh-sci: Toggle TE when restoring SCSCR in console write on SCI Diogo Ivo
2026-11-17 23:40 ` [PATCH v5 7/7] serial: rsci: Simplify rsci_transmit_chars() Diogo Ivo
2026-11-30 10:16 ` Diogo Ivo [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=6b9ff20b-992d-4c3c-a26a-28a3cc809e7c@renesas.com \
    --to=diogo.ivo.sx@renesas.com \
    --cc=au.dang.jx@renesas.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.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=stable@vger.kernel.org \
    --cc=thierry.bultel.yh@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

all inboxes | Powered by JetHome®