ar71xx: fix nondeterministic hangs during bootconsole/console handover
authorJohn Crispin <john@openwrt.org>
Sat, 9 Apr 2016 10:26:37 +0000 (10:26 +0000)
committerJohn Crispin <john@openwrt.org>
Sat, 9 Apr 2016 10:26:37 +0000 (10:26 +0000)
commit51c406993925d825301374d2f37159543fd1b2c5
tree0602c84b744c10aeee7ccef54c83560e2a61b404
parent3b4e4579e526ecf37679672e9b6f87cc293a3b24
ar71xx: fix nondeterministic hangs during bootconsole/console handover

Reconfiguring the UART when the FIFO is not empty may cause the boot to
hang. This hang is extremely suspectible to timing differences; recompiling
the kernel with the same configuration, but different UTS_VERSION
timestamps can yield images that hang more or less often. Sometimes images
are produced that hang reproducibly.

This patch should also make it into one of the next linux-stable releases,
but it's better to get this fixed as soon as possible.

Fixes #21773, #21857.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 49156
target/linux/ar71xx/patches-4.1/003-MIPS-ath79-make-bootconsole-wait-for-both-THRE-and-T.patch [new file with mode: 0644]
target/linux/ar71xx/patches-4.4/003-MIPS-ath79-make-bootconsole-wait-for-both-THRE-and-T.patch [new file with mode: 0644]