diff options
| author | Guenter Roeck <[email protected]> | 2024-12-05 14:30:33 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-12-06 07:00:01 +0000 |
| commit | 4e450dfd0f968b79204637bf13280892dff287b1 (patch) | |
| tree | 882a74394fd1cf32cc9b27c47092a6717404cd57 /drivers/platform/x86/intel/vsec.c | |
| parent | serial: sh-sci: Check if TX data was written to device in .tx_empty() (diff) | |
| download | kernel-4e450dfd0f968b79204637bf13280892dff287b1.tar.gz kernel-4e450dfd0f968b79204637bf13280892dff287b1.zip | |
tty: serial: Work around warning backtrace in serial8250_set_defaults
Commit 7c7e6c8924e7 ("tty: serial: handle HAS_IOPORT dependencies")
triggers warning backtraces on a number of platforms which don't support
IO ports.
WARNING: CPU: 0 PID: 0 at drivers/tty/serial/8250/8250_port.c:470 serial8250_set_defaults+0x148/0x1d8
Unsupported UART type 0
The problem is seen because serial8250_set_defaults() is called for
all members of the serial8250_ports[] array even if that array is
not initialized.
Work around the problem by only displaying the warning if the port
type is not 0 (UPIO_PORT) or if iobase is set for the port.
Fixes: 7c7e6c8924e7 ("tty: serial: handle HAS_IOPORT dependencies")
Acked-by: Arnd Bergmann <[email protected]>
Cc: Niklas Schnelle <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Tested-by: Stafford Horne <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/vsec.c')
0 files changed, 0 insertions, 0 deletions
