From: Greg KH <gregkh@linuxfoundation.org>
To: Paul Mbewe <paultyson.mbewe@ziehl-abegg.de>
Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
jirislaby@kernel.org, hvilleneuve@dimonoff.com
Subject: Re: [PATCH 0/2] serial: sc16is7xx: fix TX inter-frame gaps on SPI UARTs
Date: Fri, 10 Jul 2026 14:11:13 +0200 [thread overview]
Message-ID: <2026071002-override-android-1faa@gregkh> (raw)
In-Reply-To: <20260623112225.82386-1-paultyson.mbewe@ziehl-abegg.de>
On Tue, Jun 23, 2026 at 01:22:23PM +0200, Paul Mbewe wrote:
> This series fixes two related TX path issues in the sc16is7xx SPI UART
> driver that cause visible inter-frame gaps on the wire, breaking Modbus
> RTU communication.
>
> Patch 1 fixes a data loss / gap caused by kfifo_out_linear_ptr() only
> returning one contiguous segment of the circular buffer. When TX data
> wraps around the kfifo boundary, the remainder is delayed until the next
> TX interrupt, producing a silence gap that violates the Modbus 1.5
> character-time limit.
>
> Patch 2 raises the TX FIFO trigger level from 8 to 32 free spaces via
> the TLR register. The default trigger of 8 causes excessive SPI
> round-trips on slow single-core hosts, leading to TX FIFO underruns
> between bursts.
>
> Tested on SC16IS752 (SPI, 1 MHz) on i.MX6ULL driving RS-485 at 115200
> baud. Oscilloscope confirmed both gap types are eliminated after the
> fix.
>
> Paul Mbewe (2):
> serial: sc16is7xx: fix TX gap caused by kfifo circular buffer
> wrap-around
> serial: sc16is7xx: set TX FIFO trigger level to half FIFO to prevent
> underruns
>
> drivers/tty/serial/sc16is7xx.c | 24 +++++++++++++++++++++---
> 1 file changed, 21 insertions(+), 3 deletions(-)
>
> --
> 2.43.0
>
>
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him
a patch that has triggered this response. He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created. Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.
You are receiving this message because of the following common error(s)
as indicated below:
- This looks like a new version of a previously submitted patch, but you
did not list below the --- line any changes from the previous version.
Please read the section entitled "The canonical patch format" in the
kernel file, Documentation/process/submitting-patches.rst for what
needs to be done here to properly describe this.
If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.
thanks,
greg k-h's patch email bot
prev parent reply other threads:[~2026-07-10 12:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-23 11:22 [PATCH 0/2] serial: sc16is7xx: fix TX inter-frame gaps on SPI UARTs Paul Mbewe
2026-06-23 11:22 ` [PATCH 1/2] serial: sc16is7xx: fix TX gap caused by kfifo circular buffer wrap-around Paul Mbewe
2026-06-23 11:22 ` [PATCH 2/2] serial: sc16is7xx: set TX FIFO trigger level to half FIFO to prevent underruns Paul Mbewe
2026-06-23 12:45 ` David Laight
2026-06-23 14:01 ` Paul Mbewe
2026-06-23 15:07 ` David Laight
2026-06-23 17:13 ` Paul Mbewe
2026-06-23 18:42 ` David Laight
2026-06-25 12:59 ` Maarten Brock
2026-07-01 16:40 ` Paul Mbewe
2026-07-01 17:41 ` David Laight
2026-07-02 12:17 ` Maarten Brock
2026-07-02 21:24 ` David Laight
2026-07-03 18:19 ` Paul Mbewe
2026-07-03 20:36 ` David Laight
2026-07-07 15:03 ` Paul Mbewe
2026-07-07 17:50 ` David Laight
2026-07-10 12:43 ` Paul Mbewe
2026-07-10 12:11 ` Greg KH [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=2026071002-override-android-1faa@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=hvilleneuve@dimonoff.com \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=paultyson.mbewe@ziehl-abegg.de \
/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