From: sashiko-bot@kernel.org
To: "Michael Glembotzki" <m.glembo@gmail.com>, linux-serial@vger.kernel.org
Subject: Re: [PATCH v2] serial: imx: disable TX interrupts when already stopped
Date: Wed, 02 Dec 2026 16:44:59 +0000 [thread overview]
Message-ID: <sashiko-outbox-246245@kernel.org> (raw)
In-Reply-To: <20261202163424.698658-2-Michael.Glembotzki@iris-sensing.com>
> On i.MX8MP, watchdog diagnostics captured repeated UART TX-ready
> interrupts with tx_state OFF, an empty transmit buffer and no pending
> x_char. The normal transmit handler calls imx_uart_stop_tx(), but that
> function returns early when the state is OFF without clearing
> UCR1_TRDYEN or UCR4_TCEN. A still-enabled TX interrupt can starve the CPU
> and prevent the watchdog from being serviced.
>
> Clear both TX interrupt enable bits before returning from the OFF branch
> of imx_uart_stop_tx(). This also handles stopped transmission with data
> still queued, a buffer drained by the transmit handler, and platforms
> using a separate TX interrupt handler. Keep the existing DMA and RS485
> handling for other TX states unchanged.
>
> UART and RX remain enabled. Subsequent transmission can enable TX
> interrupts again through the normal start path.
>
> The origin of the inconsistent state is not yet known. This change
> addresses the observed interrupt loop, not the initial state mismatch.
>
> Fixes: cb1a60923609 ("serial: imx: implement rts delaying for rs485")
> Cc: stable@vger.kernel.org
> Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202163424.698658-2-Michael.Glembotzki@iris-sensing.com?part=1
prev parent reply other threads:[~2026-12-02 16:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 11:15 [PATCH] serial: imx: stop TX-ready interrupt storm on idle port Michael Glembotzki
2026-12-02 11:34 ` sashiko-bot
2026-12-02 16:34 ` [PATCH v2] serial: imx: disable TX interrupts when already stopped Michael Glembotzki
2026-12-02 16:44 ` 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-246245@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=m.glembo@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/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