From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Julien MALIK - UNSEENLABS <julien.malik@unseenlabs.fr>
Cc: "linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>
Subject: Re: [PATCH] serial: xilinx_uartps: unset STOPBRK when setting STARTBRK
Date: Thu, 12 Oct 2023 12:39:47 +0200 [thread overview]
Message-ID: <2023101201-wistful-fresh-567c@gregkh> (raw)
In-Reply-To: <3fdb8c7a-6b31-4569-829c-cff84d8b836d@unseenlabs.fr>
On Thu, Oct 12, 2023 at 07:40:16AM +0000, Julien MALIK - UNSEENLABS wrote:
> Le 24/06/2023 à 23:03, Julien Malik a écrit :
> > Zynq UG585 states, in chapter B.33, for XUARTPS_CR_STARTBRK:
> > It can only be set if STPBRK (Stop transmitter break) is not high
> >
> > This fixes tcsendbreak, which otherwise does not actually break.
> >
> > Signed-Off-By: Julien Malik <julien.malik@unseenlabs.fr>
> > ---
> > drivers/tty/serial/xilinx_uartps.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c
> > index 8e521c69a959..2e69fceaa792 100644
> > --- a/drivers/tty/serial/xilinx_uartps.c
> > +++ b/drivers/tty/serial/xilinx_uartps.c
> > @@ -657,7 +657,7 @@ static void cdns_uart_break_ctl(struct uart_port *port, int ctl)
> > status = readl(port->membase + CDNS_UART_CR);
> >
> > if (ctl == -1)
> > - writel(CDNS_UART_CR_STARTBRK | status,
> > + writel(CDNS_UART_CR_STARTBRK | (~CDNS_UART_CR_STOPBRK & status),
> > port->membase + CDNS_UART_CR);
> > else {
> > if ((status & CDNS_UART_CR_STOPBRK) == 0)
>
>
> Dear reviewers,
>
>
> This is a kind ping to attract more attention to this small patch.
>
>
> The issue and corresponding fix has already been suggested back in 2016
> on the xilinx forum [1].
>
>
> This is my very first patch submission to the kernel.
>
> Though I did my best, maybe I did not follow best practices, in which
> case I'm all ears to suggestions.
Odd, I don't see this in my queue anywhere, nor do I see any responses,
very sorry about that. I'll try to apply it later today.
thanks,
greg k-h
prev parent reply other threads:[~2023-10-12 10:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-24 21:03 [PATCH] serial: xilinx_uartps: unset STOPBRK when setting STARTBRK Julien Malik
2023-10-12 7:40 ` Julien MALIK - UNSEENLABS
2023-10-12 10:39 ` Greg Kroah-Hartman [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=2023101201-wistful-fresh-567c@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=julien.malik@unseenlabs.fr \
--cc=linux-serial@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).