public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Johan Hovold <johan@kernel.org>
Cc: "Jiri Slaby" <jirislaby@kernel.org>,
	linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Pali Rohár" <pali@kernel.org>
Subject: Re: [PATCH] Revert "serial: 8250: Fix reporting real baudrate value in c_ospeed field"
Date: Thu, 7 Oct 2021 16:21:30 +0200	[thread overview]
Message-ID: <YV8CavX93a8XCSJP@kroah.com> (raw)
In-Reply-To: <20211007133146.28949-1-johan@kernel.org>

On Thu, Oct 07, 2021 at 03:31:46PM +0200, Johan Hovold wrote:
> This reverts commit 32262e2e429cdb31f9e957e997d53458762931b7.
> 
> The commit in question claims to determine the inverse of
> serial8250_get_divisor() but failed to notice that some drivers override
> the default implementation using a get_divisor() callback.
> 
> This means that the computed line-speed values can be completely wrong
> and results in regular TCSETS requests failing (the incorrect values
> would also be passed to any overridden set_divisor() callback).
> 
> Similarly, it also failed to honour the old (deprecated) ASYNC_SPD_FLAGS
> and would break applications relying on those when re-encoding the
> actual line speed.
> 
> There are also at least two quirks, UART_BUG_QUOT and an OMAP1510
> workaround, which were happily ignored and that are now broken.
> 
> Finally, even if the offending commit were to be implemented correctly,
> this is a new feature and not something which should be backported to
> stable.
> 
> Cc: Pali Rohár <pali@kernel.org>
> Signed-off-by: Johan Hovold <johan@kernel.org>
> ---
>  drivers/tty/serial/8250/8250_port.c | 17 -----------------
>  1 file changed, 17 deletions(-)

Argh, sorry I missed this, good catch.  I'll go queue this up now,
thanks.

greg k-h

  reply	other threads:[~2021-10-07 14:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-07 13:31 [PATCH] Revert "serial: 8250: Fix reporting real baudrate value in c_ospeed field" Johan Hovold
2021-10-07 14:21 ` Greg Kroah-Hartman [this message]
2021-10-07 14:40   ` Pali Rohár

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=YV8CavX93a8XCSJP@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=johan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=pali@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