From: sashiko-bot@kernel.org
To: "Jan Čermák" <sairon@sairon.cz>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH v3] serial: 8250_bcm2835aux: Add support for RTS/CTS auto flow control
Date: Thu, 01 Oct 2026 09:13:13 +0000 [thread overview]
Message-ID: <20261001091313.D86A21F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261001090432.1045270-1-sairon@sairon.cz>
> The bcm2835aux mini UART can automatically de-assert RTS based on the RX
> FIFO fill level and gate the transmitter on CTS, but the driver never
> made use of it. Wire it up:
>
> - Enable AUTORTS/AUTOCTS (with the RTS4 threshold and inverted, i.e.
> conventional active-low, polarity) whenever CRTSCTS is set on ports
> declaring the "uart-has-rtscts" property, advertised via
> UPF_HARD_FLOW.
>
> - Gate the AUTORTS function on TIOCM_RTS in set_mctrl() so that clearing
> RTS (port close, TIOCMBIC, B0) actually de-asserts the pin while auto
> flow control is active.
>
> - Implement throttle()/unthrottle() by disabling the RX interrupts and
> letting the FIFO fill up, making the hardware de-assert RTS - the same
> [ ... ]
> without the rs485_stop_tx() callback ever being called, which would
> leave the receiver disabled.
>
> Assisted-by: Claude:claude-fable-5
> Signed-off-by: Jan Čermák <sairon@sairon.cz>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261001090432.1045270-1-sairon@sairon.cz?part=1
prev parent reply other threads:[~2026-10-01 9:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 9:04 [PATCH v3] serial: 8250_bcm2835aux: Add support for RTS/CTS auto flow control Jan Čermák
2026-10-01 9: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=20261001091313.D86A21F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=sairon@sairon.cz \
--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