The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <ukleinek@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>,
	 Hugo Villeneuve <hvilleneuve@dimonoff.com>,
	John Ogness <john.ogness@linutronix.de>,
	 linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Subject: Re: [PATCH v1 2/6] serial: txx9: Drop usage of uart_match_port()
Date: Mon, 3 Aug 2026 20:57:24 +0200	[thread overview]
Message-ID: <anDhTEbbTgEVeSsr@monoceros> (raw)
In-Reply-To: <2026080352-chatter-neurotic-48c3@gregkh>

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

On Mon, Aug 03, 2026 at 04:46:14PM +0200, Greg Kroah-Hartman wrote:
> On Fri, Jul 31, 2026 at 11:39:05AM +0200, Uwe Kleine-König wrote:
> > In this driver .iotype is always UPIO_PORT. So uart_match_port() is
> > equivalent to comparing .iobase. Remove the call to uart_match_port()
> > which then only has a single caller that is handled in the next commit.
> > 
> > Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
> > ---
> >  drivers/tty/serial/serial_txx9.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/tty/serial/serial_txx9.c b/drivers/tty/serial/serial_txx9.c
> > index 5ed20129b44b..2368081c3742 100644
> > --- a/drivers/tty/serial/serial_txx9.c
> > +++ b/drivers/tty/serial/serial_txx9.c
> > @@ -965,7 +965,7 @@ static int serial_txx9_register_port(struct uart_port *port)
> >  	mutex_lock(&serial_txx9_mutex);
> >  	for (i = 0; i < UART_NR; i++) {
> >  		uart = &serial_txx9_ports[i];
> > -		if (uart_match_port(uart, port)) {
> > +		if (uart->iobase == port->iobase)
> >  			uart_remove_one_port(&serial_txx9_reg, uart);
> >  			break;
> >  		}
> 
> Does this even build?

Sigh, it passed my build scripts (which is essentially allmodconfig for
arc, sh, alpha, arm64, x86_64, s390, riscv, mips, powerpc, loongarch,
sparc, m68k and parisc), but this driver is only compiled for certain
mips configs and not allmodconfig :-(

Will respin with a better suitable test build.

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2026-08-03 18:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-31  9:39 [PATCH v1 0/6] serial: Some yak shaving Uwe Kleine-König
2026-07-31  9:39 ` [PATCH v1 1/6] serial: txx9: Drop noop probe function and dangerous remove callback Uwe Kleine-König
2026-07-31  9:39 ` [PATCH v1 2/6] serial: txx9: Drop usage of uart_match_port() Uwe Kleine-König
2026-08-03 14:46   ` Greg Kroah-Hartman
2026-08-03 18:57     ` Uwe Kleine-König [this message]
2026-08-03 17:27   ` Ilpo Järvinen
2026-08-03 18:59     ` Uwe Kleine-König
2026-07-31  9:39 ` [PATCH v1 3/6] serial: 8250: Make uart_match_port() a 8250 specific function Uwe Kleine-König
2026-08-03 17:23   ` Ilpo Järvinen
2026-08-03 19:22   ` Hugo Villeneuve
2026-07-31  9:39 ` [PATCH v1 4/6] serial: 8250: Fix corner case for port matching Uwe Kleine-König
2026-07-31  9:39 ` [PATCH v1 5/6] serial: 8250: hub6: Add cleanup code Uwe Kleine-König
2026-07-31  9:39 ` [PATCH v1 6/6] serial: 8250: pnp: Annotate init and exit functions for conditional discarding Uwe Kleine-König

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=anDhTEbbTgEVeSsr@monoceros \
    --to=ukleinek@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hvilleneuve@dimonoff.com \
    --cc=jirislaby@kernel.org \
    --cc=john.ogness@linutronix.de \
    --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