aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-03-13 13:27:23 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-22 16:21:41 -0700
commit7aea005ad193b72ad3681b0a8919774a86a4c65c (patch)
tree557d3afde3385b5a59016388f59075312a819c13 /tools
parent017652f31965665b963c5419a2a46762e0853584 (diff)
downloadkernel_samsung_espresso10-7aea005ad193b72ad3681b0a8919774a86a4c65c.zip
kernel_samsung_espresso10-7aea005ad193b72ad3681b0a8919774a86a4c65c.tar.gz
kernel_samsung_espresso10-7aea005ad193b72ad3681b0a8919774a86a4c65c.tar.bz2
serial: PL011: clear pending interrupts
commit 9b96fbacda34079dea0638ee1e92c56286f6114a upstream. Chanho Min reported that when the boot loader transfers control to the kernel, there may be pending interrupts causing the UART to lock up in an eternal loop trying to pick tokens from the FIFO (since the RX interrupt flag indicates there are tokens) while in practice there are no tokens - in fact there is only a pending IRQ flag. This patch address the issue with a combination of two patches suggested by Russell King that clears and mask all interrupts at probe() and clears any pending error and RX interrupts at port startup time. We suspect the spurious interrupts are a side-effect of switching the UART from FIFO to non-FIFO mode. Cc: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> Reported-by: Chanho Min <chanho0207@gmail.com> Suggested-by: Russell King <linux@arm.linux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Jong-Sung Kim <neidhard.kim@lge.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions