Commit d43b54d2 authored by Scott Wood's avatar Scott Wood Committed by Greg Kroah-Hartman

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: default avatarScott Wood <scottwood@freescale.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 37f06799
...@@ -274,8 +274,8 @@ config SERIAL_8250_ACORN ...@@ -274,8 +274,8 @@ config SERIAL_8250_ACORN
config SERIAL_8250_FSL config SERIAL_8250_FSL
bool bool
depends on SERIAL_8250_CONSOLE && PPC_UDBG_16550 depends on SERIAL_8250_CONSOLE
default PPC default PPC || ARM || ARM64
config SERIAL_8250_DW config SERIAL_8250_DW
tristate "Support for Synopsys DesignWare 8250 quirks" tristate "Support for Synopsys DesignWare 8250 quirks"
......
...@@ -154,6 +154,11 @@ static int of_platform_serial_setup(struct platform_device *ofdev, ...@@ -154,6 +154,11 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
break; break;
} }
if (IS_ENABLED(CONFIG_SERIAL_8250_FSL) &&
(of_device_is_compatible(np, "fsl,ns16550") ||
of_device_is_compatible(np, "fsl,16550-FIFO64")))
port->handle_irq = fsl8250_handle_irq;
return 0; return 0;
out: out:
if (info->clk) if (info->clk)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment