]> git.baikalelectronics.ru Git - kernel.git/commit
Xilinx: ARM: UART: clear pending irqs before enabling irqs
authorJohn Linn <john.linn@xilinx.com>
Fri, 22 Mar 2013 17:49:27 +0000 (18:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 23:26:23 +0000 (16:26 -0700)
commit007c299f0ddddf7bfaca2e195a4dfeeb7f7e7e15
treea9552229d60c0b3930aa57187e6c034574fb9b1f
parent030e8ce540161fc3d4841bd64f99d4f60398a606
Xilinx: ARM: UART: clear pending irqs before enabling irqs

The Boot ROM has an issue which will cause the driver to
lock up as pending irqs are not being cleared. With them
cleared it prevents that issue.

This patch is needed for the current (3.9-rc3) mainline kernel. I guess
it went unnoticed, because it was only tested with u-boot up until now.
And u-boot maybe handles this.

[s.trumtrar@pengutronix.de: cherry-picked from linux-xlnx.git]
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c