]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/powernv: Properly drop characters if console is closed
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 8 May 2013 04:14:26 +0000 (14:14 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 8 May 2013 04:14:26 +0000 (14:14 +1000)
commit1de1455f33709a8afd8d41d26d09739a1148105b
tree5818d3cd5c087f8df8e423db7ba9ee88fb370371
parent30650239adc9e4e9439256d6988e521518dccbb3
powerpc/powernv: Properly drop characters if console is closed

If the firmware returns an error such as "closed" (or hardware
error), we should drop characters.

Currently we only do that when a firmware compatible with OPAL v2
APIs is detected, in the code that calls opal_console_write_buffer_space(),
which didn't exist with OPAL v1 (or didn't work).

However, when enabling early debug consoles, the flag indicating
that v2 is supported isn't set yet, causing us, in case of errors
or closed console, to spin forever.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/opal.c