From: sashiko-bot@kernel.org
To: "Jan Čermák" <sairon@sairon.cz>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH v2] serial: 8250_bcm2835aux: Add support for RTS/CTS auto flow control
Date: Wed, 30 Sep 2026 13:11:38 +0000 [thread overview]
Message-ID: <20260930131138.BBBB31F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260930125620.221836-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/20260930125620.221836-1-sairon@sairon.cz?part=1
next prev parent reply other threads:[~2026-09-30 13:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 12:56 [PATCH v2] serial: 8250_bcm2835aux: Add support for RTS/CTS auto flow control Jan Čermák
2026-09-30 13:11 ` sashiko-bot [this message]
2026-10-01 6:09 ` Jiri Slaby
2026-10-01 8:39 ` Greg KH
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=20260930131138.BBBB31F000FF@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 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.