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)
commit01918363e920c48f02b3a13581971737feea12d2
tree9bd645c47729c12cf5be4dd993cf81549ff29392
parentabc2581dc6bcab821b480e0e657680024cf3cdd7
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