]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: ep93xx: Fix wait for UART FIFO to be empty
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 16 Mar 2013 00:16:52 +0000 (19:16 -0500)
committerRyan Mallon <rmallon@gmail.com>
Sun, 17 Mar 2013 22:40:38 +0000 (09:40 +1100)
commit776d0b149699e4e2ba390fa1f0ceefc5c0e39dd5
tree8abc56dbea1bf45a1dda949b9bcb650b56255db7
parent1550423bbae002d3be1ebdba2fe7b0d0e8ade01e
ARM: ep93xx: Fix wait for UART FIFO to be empty

Commit 129de4cf "ARM: ep93xx: properly wait for UART FIFO to be empty"

Removed the timeout loop while waiting for the uart transmit fifo to
empty. Some bootloaders leave the uart in a state where there might
be bytes in the uart that are not transmitted when execution is handed
over to the kernel. This results in a deadlocked system while waiting
for the fifo to empty.

Add back the timeout wait to prevent the deadlock.

Increase the wait time to hopefully prevent the decompressor corruption
that lead to commit 129de4cf. This corruption was probably due to a
slow uart baudrate. The 10* increase in the wait time should be enough
for all cases.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ryan Mallon <rmallon@gmail.com>
arch/arm/mach-ep93xx/include/mach/uncompress.h