summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/of_serial.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2015-10-08 00:31:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-18 06:05:46 +0200
commitd43b54d269d27bd512f36e4f0f3d129be582ebc8 (patch)
tree73c7fdbada94876b24ea7bffffc0dbd0c686019c /drivers/tty/serial/of_serial.c
parenttty: serial: men_z135_uart.c: use mcb memory region size instead of hardcoded... (diff)
downloadlinux-d43b54d269d27bd512f36e4f0f3d129be582ebc8.tar.xz
linux-d43b54d269d27bd512f36e4f0f3d129be582ebc8.zip
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 <scottwood@freescale.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/of_serial.c')
-rw-r--r--drivers/tty/serial/of_serial.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c
index e08df9775983..de5029649795 100644
--- a/drivers/tty/serial/of_serial.c
+++ b/drivers/tty/serial/of_serial.c
@@ -154,6 +154,11 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
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;
out:
if (info->clk)