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)
commit2cba297ea064df58259f2b4dafbcdd05291d38b5
tree1fef8d6a4b9d13f143b7072d87f36017c2e0fa18
parent240ed52317145dfa8863dc044338e34b8dc5b4d7
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]