Files
linux/drivers/tty
Claudiu Beznea ee95d0843a serial: sh-sci: Do not probe the serial port if its slot in sci_ports[] is in use
commit 9f7dea875c upstream.

In the sh-sci driver, sci_ports[0] is used by earlycon. If the earlycon is
still active when sci_probe() is called and the new serial port is supposed
to map to sci_ports[0], return -EBUSY to prevent breaking the earlycon.

This situation should occurs in debug scenarios, and users should be
aware of the potential conflict.

Fixes: 0b0cced19a ("serial: sh-sci: Add CONFIG_SERIAL_EARLYCON support")
Cc: stable@vger.kernel.org
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://lore.kernel.org/r/20250116182249.3828577-4-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-17 10:05:18 +01:00
..
2024-09-03 10:47:56 +02:00
2024-08-07 13:08:14 +02:00
2023-12-08 12:02:38 +01:00
2024-09-03 10:47:47 +02:00
2023-08-11 21:12:47 +02:00
2023-12-08 12:02:38 +01:00
2024-07-30 09:30:11 -10:00
2023-08-11 21:12:46 +02:00
2022-09-22 16:12:34 +02:00
2023-12-08 12:02:37 +01:00