* [PATCH v1 1/1] serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value
@ 2024-11-25 10:33 Andy Shevchenko
2024-11-25 10:45 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2024-11-25 10:33 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-kernel, linux-serial
Cc: Jiri Slaby, Arnd Bergmann, Andy Shevchenko
serial8250_init_port() assings 0xFF for the unset or unknown port
IO type, use predefined constant for that instead.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/tty/serial/8250/8250_port.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
index 4d63d80e78a9..1003516097df 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -3249,7 +3249,7 @@ void serial8250_init_port(struct uart_8250_port *up)
port->ops = &serial8250_pops;
port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_8250_CONSOLE);
- up->cur_iotype = 0xFF;
+ up->cur_iotype = UPIO_UNKNOWN;
}
EXPORT_SYMBOL_GPL(serial8250_init_port);
--
2.43.0.rc1.1336.g36b5255a03ac
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value
2024-11-25 10:33 [PATCH v1 1/1] serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value Andy Shevchenko
@ 2024-11-25 10:45 ` Arnd Bergmann
2024-11-25 10:52 ` Andy Shevchenko
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2024-11-25 10:45 UTC (permalink / raw)
To: Andy Shevchenko, Greg Kroah-Hartman, linux-kernel, linux-serial
Cc: Jiri Slaby
On Mon, Nov 25, 2024, at 11:33, Andy Shevchenko wrote:
> serial8250_init_port() assings 0xFF for the unset or unknown port
> IO type, use predefined constant for that instead.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
I already thought about sending the same thing, but was going
to wait until we have found a solution to the
!CONFIG_HAS_IOPORT warning.
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value
2024-11-25 10:45 ` Arnd Bergmann
@ 2024-11-25 10:52 ` Andy Shevchenko
0 siblings, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2024-11-25 10:52 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Greg Kroah-Hartman, linux-kernel, linux-serial, Jiri Slaby
On Mon, Nov 25, 2024 at 11:45:32AM +0100, Arnd Bergmann wrote:
> On Mon, Nov 25, 2024, at 11:33, Andy Shevchenko wrote:
> > serial8250_init_port() assings 0xFF for the unset or unknown port
> > IO type, use predefined constant for that instead.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
Thank you!
> I already thought about sending the same thing, but was going
> to wait until we have found a solution to the
> !CONFIG_HAS_IOPORT warning.
But it seems orthogonal to that... The solution in any case will
be more verbose and intrusive than this one-liner, I think.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-25 10:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-25 10:33 [PATCH v1 1/1] serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value Andy Shevchenko
2024-11-25 10:45 ` Arnd Bergmann
2024-11-25 10:52 ` Andy Shevchenko
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).