Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 740a796

Browse files
committed
Revert "serial: 8250: Add preferred console in serial8250_isa_init_ports()"
This reverts commit a8b04cf. Let's roll back all of the serial core and printk console changes that went into 6.10-rc1 as there still are problems with them that need to be sorted out. Link: https://lore.kernel.org/r/ZnpRozsdw6zbjqze@tlindgre-MOBL1 Reported-by: Petr Mladek <pmladek@suse.com> Reported-by: Tony Lindgren <tony@atomide.com> Cc: Jiri Slaby <jirislaby@kernel.org> Cc: John Ogness <john.ogness@linutronix.de> Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 12b7210 commit 740a796

File tree

3 files changed

+0
-34
lines changed

3 files changed

+0
-34
lines changed

drivers/tty/serial/8250/8250_core.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
#include <linux/acpi.h>
18-
#include <linux/cleanup.h>
1918
#include <linux/module.h>
2019
#include <linux/moduleparam.h>
2120
#include <linux/ioport.h>
@@ -42,8 +41,6 @@
4241

4342
#include <asm/irq.h>
4443

45-
#include "../serial_base.h" /* For serial_base_add_isa_preferred_console() */
46-
4744
#include "8250.h"
4845

4946
/*
@@ -563,8 +560,6 @@ static void __init serial8250_isa_init_ports(void)
563560
port->irqflags |= irqflag;
564561
if (serial8250_isa_config != NULL)
565562
serial8250_isa_config(i, &up->port, &up->capabilities);
566-
567-
serial_base_add_isa_preferred_console(serial8250_reg.dev_name, i);
568563
}
569564
}
570565

drivers/tty/serial/serial_base.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ void serial_core_unregister_port(struct uart_driver *drv, struct uart_port *port
5555
int serial_base_add_preferred_console(struct uart_driver *drv,
5656
struct uart_port *port);
5757

58-
int serial_base_add_isa_preferred_console(const char *name, int idx);
59-
6058
#else
6159

6260
static inline
@@ -66,10 +64,4 @@ int serial_base_add_preferred_console(struct uart_driver *drv,
6664
return 0;
6765
}
6866

69-
static inline
70-
int serial_base_add_isa_preferred_console(const char *name, int idx)
71-
{
72-
return 0;
73-
}
74-
7567
#endif

drivers/tty/serial/serial_base_bus.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -317,27 +317,6 @@ int serial_base_add_preferred_console(struct uart_driver *drv,
317317
return serial_base_add_one_prefcon(port_match, drv->dev_name, port->line);
318318
}
319319

320-
#ifdef CONFIG_SERIAL_8250_CONSOLE
321-
322-
/*
323-
* Early ISA ports initialize the console before there is no struct device.
324-
* This should be only called from serial8250_isa_init_preferred_console(),
325-
* other callers are likely wrong and should rely on earlycon instead.
326-
*/
327-
int serial_base_add_isa_preferred_console(const char *name, int idx)
328-
{
329-
return serial_base_add_prefcon(name, idx);
330-
}
331-
332-
#else
333-
334-
int serial_base_add_isa_preferred_console(const char *name, int idx)
335-
{
336-
return 0;
337-
}
338-
339-
#endif
340-
341320
#endif
342321

343322
static int serial_base_init(void)

0 commit comments

Comments
 (0)