All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Sherry Sun (OSS)" <sherry.sun@oss.nxp.com>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH 2/2] tty: serial: lpuart: disable hardware flow control in lpuart32_startup()
Date: Thu, 22 Oct 2026 03:20:22 +0000	[thread overview]
Message-ID: <sashiko-outbox-180944@kernel.org> (raw)
In-Reply-To: <20261022-b4-lpuart_rts_fix-v1-2-207f91580dee@nxp.com>

> From: Sherry Sun <sherry.sun@nxp.com>
> 
> The RXRTSE/TXCTSE bits in UARTMODIR are configured by set_termios()
> according to CRTSCTS and are left untouched by shutdown(), so they keep
> their value from the previous session when the port is started again.
> 
> On open, and on resume when a tty is attached, the serial core calls
> ops->startup() before set_termios(). lpuart32_startup() enables the
> receiver (UARTCTRL_RE), and with RXRTSE still set from the previous
> session RTS is asserted immediately. The remote side may then start
> sending before set_termios() deasserts RTS again, disables TE/RE and
> reprograms the baud rate, so the characters in flight are lost or
> corrupted.
> 
> Clear RXRTSE/TXCTSE at the beginning of lpuart32_startup() instead.
> Together with set_termios() keeping both bits masked until its last
> UARTMODIR write, RTS now stays deasserted from startup() until the port
> is fully configured. The flow control setting itself is still owned by
> set_termios().
> 
> Fixes: 380c966c093e ("tty: serial: fsl_lpuart: add 32-bit register interface support")
> Cc: stable@vger.kernel.org
> Signed-off-by: Sherry Sun <sherry.sun@nxp.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261022-b4-lpuart_rts_fix-v1-0-207f91580dee@nxp.com?part=2


      reply	other threads:[~2026-10-22  3:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22  3:15 [PATCH 0/2] tty: serial: lpuart: keep RTS deasserted while the port is being configured Sherry Sun (OSS)
2026-10-22  3:15 ` [PATCH 1/2] tty: serial: lpuart: deassert RTS while reconfiguring in set_termios() Sherry Sun (OSS)
2026-10-22  3:18   ` sashiko-bot
2026-10-22  3:15 ` [PATCH 2/2] tty: serial: lpuart: disable hardware flow control in lpuart32_startup() Sherry Sun (OSS)
2026-10-22  3:20   ` 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-180944@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=sherry.sun@oss.nxp.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 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.