All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	linux-serial <linux-serial@vger.kernel.org>,
	kernel@pengutronix.de
Subject: Re: [PATCH] serial: 8250: Fix mismerge regarding serial_lsr_in()
Date: Thu, 2 Feb 2023 13:26:08 +0200 (EET)	[thread overview]
Message-ID: <f157ed1b-3856-7ac9-f054-265536ba3b3@linux.intel.com> (raw)
In-Reply-To: <20230202104501.264686-1-u.kleine-koenig@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 1955 bytes --]

On Thu, 2 Feb 2023, Uwe Kleine-König wrote:

> The relevant history introducing serial_lsr_in() looks as follows:
> 
> 	$ git log --graph --oneline --boundary 9fafe733514b..df36f3e3fbb7 -- drivers/tty/serial/8250/8250_port.c
> 	*   df36f3e3fbb7 Merge tag 'v5.19-rc3' into tty-next
> 	|\
> 	| * be03b0651ffd serial: 8250: Store to lsr_save_flags after lsr read
> 	* | ...
> 	* | bdb70c424df1 serial: 8250: Create serial_lsr_in()
> 	* | ce338e4477cf serial: 8250: Store to lsr_save_flags after lsr read
> 	* | ...
> 	|/
> 	o 9fafe733514b tty: remove CMSPAR ifdefs
> 
> So the patch "serial: 8250: Store to lsr_save_flags after lsr read" was
> introduced twice and in one branch it was followed up by commit
> bdb70c424df1 ("serial: 8250: Create serial_lsr_in()") which moved
> explicit lsr_saved_flags handling into a new function serial_lsr_in().
> When the two branches were merged in commit df36f3e3fbb7, we got both,
> serial_lsr_in() and the explicit lsr_saved_flags handling.
> 
> So drop the explicit lsr_saved_flags handling.
> 
> Fixes: df36f3e3fbb7 ("Merge tag 'v5.19-rc3' into tty-next")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/tty/serial/8250/8250_port.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
> index 33be7aad11ef..e61753c295d5 100644
> --- a/drivers/tty/serial/8250/8250_port.c
> +++ b/drivers/tty/serial/8250/8250_port.c
> @@ -1512,8 +1512,6 @@ static inline void __stop_tx(struct uart_8250_port *p)
>  		u16 lsr = serial_lsr_in(p);
>  		u64 stop_delay = 0;
>  
> -		p->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS;
> -
>  		if (!(lsr & UART_LSR_THRE))
>  			return;
>  		/*

I don't know if Fixes tag is appropriate here. This fixes the mismerge 
yes, however, the removed line itself seems harmless so there's no real 
problem to fix.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

-- 
 i.

  reply	other threads:[~2023-02-02 11:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02 10:45 [PATCH] serial: 8250: Fix mismerge regarding serial_lsr_in() Uwe Kleine-König
2023-02-02 11:26 ` Ilpo Järvinen [this message]
2023-02-02 12:04   ` Uwe Kleine-König
2023-02-02 12:09     ` Ilpo Järvinen
2023-02-02 13:40       ` Uwe Kleine-König
2023-02-02 13:59         ` Greg Kroah-Hartman

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=f157ed1b-3856-7ac9-f054-265536ba3b3@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-serial@vger.kernel.org \
    --cc=u.kleine-koenig@pengutronix.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 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.