From: "Pali Rohár" <pali@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Andy Shevchenko" <andy.shevchenko@gmail.com>,
"Jiri Slaby" <jirislaby@kernel.org>,
"Johan Hovold" <johan@kernel.org>,
"Marek Behún" <kabel@kernel.org>,
"open list:SERIAL DRIVERS" <linux-serial@vger.kernel.org>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 0/3] serial: Fix support for UPF_SPD_* flags
Date: Fri, 8 Jul 2022 16:20:01 +0200 [thread overview]
Message-ID: <20220708142001.7fciqnfckznlvsa4@pali> (raw)
In-Reply-To: <Ysg2RW0B/cLL3k+k@kroah.com>
On Friday 08 July 2022 15:51:01 Greg Kroah-Hartman wrote:
> On Fri, Jul 08, 2022 at 03:26:21PM +0200, Pali Rohár wrote:
> > On Friday 08 July 2022 15:07:43 Greg Kroah-Hartman wrote:
> > > On Thu, Jul 07, 2022 at 10:48:40AM +0200, Pali Rohár wrote:
> > > > On Friday 22 April 2022 16:28:06 Greg Kroah-Hartman wrote:
> > > > > On Tue, Mar 22, 2022 at 04:29:08PM +0200, Andy Shevchenko wrote:
> > > > > > On Mon, Mar 21, 2022 at 11:07 PM Pali Rohár <pali@kernel.org> wrote:
> > > > > > >
> > > > > > > Support for UPF_SPD_* flags is currently broken in more drivers for two
> > > > > > > reasons. First one is that uart_update_timeout() function does not
> > > > > >
> > > > > > the uart_update_timeout()
> > > > > >
> > > > > > > calculate timeout for UPF_SPD_CUST flag correctly. Second reason is that
> > > > > > > userspace termios structre is modified by most drivers after each
> > > > > >
> > > > > > structure
> > > > > >
> > > > > > ...
> > > > > >
> > > > > > > (error handling was ommited for simplification)
> > > > > >
> > > > > > omitted
> > > > > >
> > > > > > > After calling set_active_spd_cust_baud() function SPD custom divisor
> > > > > > > should be active and therefore is_spd_cust_active() should return true.
> > > > > > >
> > > > > > > But it is not active (cfgetospeed does not return B38400) and this patch
> > > > > > > series should fix it. I have tested it with 8250 driver.
> > > > > >
> > > > > > drivers
> > > > > >
> > > > > > > Originally Johan Hovold reported that there may be issue with these
> > > > > > > ASYNC_SPD_FLAGS in email:
> > > > > > > https://lore.kernel.org/linux-serial/20211007133146.28949-1-johan@kernel.org/
> > > > > > >
> > > > > > >
> > > > > > > Johan, Greg, could you please test these patches if there is not any
> > > > > > > regression?
> > > > > >
> > > > > > I'm wondering why we are still supporting this ugly hack?
> > > > > > Doesn't BOTHER work for you?
> > > > >
> > > > > Yes, I too do not want to add more support for these old flags. If they
> > > > > have not been working, let's not add support for them as obviously no
> > > > > one is using them. Let's try to remove them if at all possible.
> > > >
> > > > Well, it works partially. For more drivers SET method is working, but
> > > > GET method returns incorrect value. If your userspace application is
> > > > written in a way that does not retrieve from kernel current settings
> > > > then it has big probability that application works.
> > >
> > > I do not understand, sorry, what do you mean by this?
> >
> > I mean that SET methods are working, GET methods not. In this case SET
> > done via ioctl(TIOCSSERIAL) and GET via ioctl(TIOCGSERIAL).
> >
> > > And as you are responding to a months-old thread, I am totally lost, and
> > > don't even know what the patch here was...
> > >
> > > > So, do you really want to remove support for these old flags completely?
> > > > That would of course break above applications.
> > >
> > > I'm not saying remove them, I'm saying let us not add any more
> > > dependancies on them in order to keep new applications from ever wanting
> > > to use them.
> >
> > Last time you wrote to remove them. Now saying not to remove them. So I
> > do not understand you now.
>
> I'm sorry, I am totally lost.
So look what you have wrote? Who is lost here is me.
> How about starting over and resubmitting
> the changes you want and we can go from there.
>
> greg k-h
What to resubmit? I do not understand you. In case you lost emails or
accidentally removed them, you can look at them in archive, not? I hope
that you do not want me to copy+paste all existing patches with all your
quotes on them which you wrote into new emails.
next prev parent reply other threads:[~2022-07-08 14:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 16:30 [PATCH 0/3] serial: Fix support for UPF_SPD_* flags Pali Rohár
2022-03-21 16:30 ` [PATCH 1/3] serial: core: Document why UPF_SPD_CUST is not handled in uart_get_baud_rate() Pali Rohár
2022-03-21 16:30 ` [PATCH 2/3] serial: core: Fix function uart_update_timeout() to handle UPF_SPD_CUST flag Pali Rohár
2022-03-21 16:30 ` [PATCH 3/3] serial: Fix support for UPF_SPD_* flags in serial drivers Pali Rohár
2022-03-22 14:29 ` [PATCH 0/3] serial: Fix support for UPF_SPD_* flags Andy Shevchenko
2022-03-22 18:53 ` Pali Rohár
2022-04-22 14:28 ` Greg Kroah-Hartman
2022-07-07 8:48 ` Pali Rohár
2022-07-08 13:07 ` Greg Kroah-Hartman
2022-07-08 13:26 ` Pali Rohár
2022-07-08 13:51 ` Greg Kroah-Hartman
2022-07-08 14:20 ` Pali Rohár [this message]
2022-07-08 15:42 ` Andy Shevchenko
2022-07-08 15:54 ` Pali Rohár
2022-07-08 16:09 ` Andy Shevchenko
2022-07-08 16:25 ` Pali Rohár
2022-07-08 17:41 ` Andy Shevchenko
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=20220708142001.7fciqnfckznlvsa4@pali \
--to=pali@kernel.org \
--cc=andy.shevchenko@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=johan@kernel.org \
--cc=kabel@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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).