All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Kohei Otsuka" <kohei@spacemachines.com>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH v3 2/2] serial: 8250_of: add Microchip Core16550
Date: Mon, 09 Nov 2026 22:13:40 +0000	[thread overview]
Message-ID: <sashiko-outbox-205706@kernel.org> (raw)
In-Reply-To: <20261110-core16550-rs485-v3-2-4294334243fa@spacemachines.com>

> From: Kohei Otsuka <kohei@spacemachines.com>
> 
> Core16550, a 16550-compatible UART for Microchip FPGAs, interrupts on
> THRE but not on TEMT. When the last character moves from the FIFO into
> the shift register, the THRE interrupt calls __stop_tx(), which finds
> TEMT clear and, without UART_CAP_NOTEMT, returns to wait for a TEMT
> interrupt that never comes. RTS, and with it the RS-485 driver enable,
> then stays asserted after the frame, and receive interrupts, disabled
> for the half-duplex transmission, stay off.
> 
> Match "microchip,core16550-rtl-v3" as a PORT_16550A, and set
> UART_CAP_NOTEMT for it, so em485 drops RTS from its stop timer one
> frame time (plus 1/7) after THRE, as it does for DesignWare UARTs.
> 
> Set UART_CAP_FIFO as well: with the capabilities already non-zero,
> serial8250_do_startup() no longer fills in the PORT_16550A default,
> and without UART_CAP_FIFO serial8250_clear_fifos() does nothing, so
> the RX FIFO is not flushed at the end of a half-duplex transmission.
> 
> Link: https://github.com/linux4microchip/meta-mchp/issues/5
> Signed-off-by: Kohei Otsuka <kohei@spacemachines.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261110-core16550-rs485-v3-0-4294334243fa@spacemachines.com?part=2


      reply	other threads:[~2026-11-09 22:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 22:06 [PATCH v3 0/2] serial: 8250_of: RS-485 on Microchip Core16550 Kohei Otsuka
2026-11-09 22:06 ` Kohei Otsuka via B4 Relay
2026-11-09 22:06 ` [PATCH v3 1/2] dt-bindings: serial: 8250: add " Kohei Otsuka
2026-11-09 22:06   ` Kohei Otsuka via B4 Relay
2026-11-09 22:10   ` sashiko-bot
2026-11-10 18:16   ` Conor Dooley
2026-11-09 22:06 ` [PATCH v3 2/2] serial: 8250_of: " Kohei Otsuka
2026-11-09 22:06   ` Kohei Otsuka via B4 Relay
2026-11-09 22:13   ` 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-205706@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=kohei@spacemachines.com \
    --cc=linux-serial@vger.kernel.org \
    --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 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.