ar71xx: fix nondeterministic hangs during bootconsole/console handover
authorRafał Miłecki <zajec5@gmail.com>
Wed, 20 Apr 2016 06:05:56 +0000 (06:05 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Wed, 20 Apr 2016 06:05:56 +0000 (06:05 +0000)
commit55b2b77744b457403949a6aa1aea16df2e61e70c
treeeefdb2967f91357cdfde873856f255721d3abd30
parent0b10b190d560213167c0c1ec60259d01c1afc859
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>
Backport of r49156

SVN-Revision: 49202
target/linux/ar71xx/patches-3.18/003-MIPS-ath79-make-bootconsole-wait-for-both-THRE-and-T.patch [new file with mode: 0644]
target/linux/ar71xx/patches-3.18/521-MIPS-ath79-enable-UART-for-early_serial.patch
target/linux/ar71xx/patches-3.18/707-MIPS-ath79-add-support-for-QCA953x-SoC.patch
target/linux/ar71xx/patches-3.18/735-MIPS-ath79-add-support-for-QCA956x-SoC.patch