Skip to content

Commit d43b54d

Browse files
Scott Woodgregkh
authored andcommitted
serial: Enable Freescale 16550 workaround on arm
The same serial hardware is present on LS2080A which is arm64, and LS1021A which is arm32, so don't limit the workaround to PPC. Unlike PPC which uses arch/powerpc/kernel/legacy_serial.c, the ARM targets use drivers/tty/serial/of_serial.c, so add the handle_irq override check there as well. Signed-off-by: Scott Wood <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 37f0679 commit d43b54d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

drivers/tty/serial/8250/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ config SERIAL_8250_ACORN
274274

275275
config SERIAL_8250_FSL
276276
bool
277-
depends on SERIAL_8250_CONSOLE && PPC_UDBG_16550
278-
default PPC
277+
depends on SERIAL_8250_CONSOLE
278+
default PPC || ARM || ARM64
279279

280280
config SERIAL_8250_DW
281281
tristate "Support for Synopsys DesignWare 8250 quirks"

drivers/tty/serial/of_serial.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
154154
break;
155155
}
156156

157+
if (IS_ENABLED(CONFIG_SERIAL_8250_FSL) &&
158+
(of_device_is_compatible(np, "fsl,ns16550") ||
159+
of_device_is_compatible(np, "fsl,16550-FIFO64")))
160+
port->handle_irq = fsl8250_handle_irq;
161+
157162
return 0;
158163
out:
159164
if (info->clk)

0 commit comments

Comments
 (0)