powerpc/hvsi: Increase handshake timeout from 200ms to 400ms.
authorEugene Surovegin <ebs@ebshome.net>
Mon, 26 Aug 2013 18:53:32 +0000 (11:53 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Sep 2013 00:57:34 +0000 (01:57 +0100)
commit12ee8aa39c123500c8e340b8a83f9d5f11000152
treec99ae3648eb9380116576c6be9cd3e6d3f5cb8e1
parent3bf7055b3d4062d835d15d734ca5a9baa9403e1e
powerpc/hvsi: Increase handshake timeout from 200ms to 400ms.

commit d220980b701d838560a70de691b53be007e99e78 upstream.

This solves a problem observed in kexec'ed kernel where 200ms timeout is
too short and bootconsole fails to initialize. Console did eventually
become workable but much later into the boot process.

Observed timeout was around 260ms, but I decided to make it a little bigger
for more reliability.

This has been tested on Power7 machine with Petitboot as a primary
bootloader and PowerNV firmware.

Signed-off-by: Eugene Surovegin <surovegin@google.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/tty/hvc/hvsi_lib.c