powerpc/powernv: move opal console flushing to udbg
authorNicholas Piggin <npiggin@gmail.com>
Mon, 30 Apr 2018 14:55:50 +0000 (00:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Jul 2018 12:09:57 +0000 (22:09 +1000)
commitac4ac788fdadc6b703ff3322de07dee442e08e1c
treeea1fbf4f4ec19a771adf1c7ce42272cd12aea3ab
parentb74d2807ae0cdb17ccc45d22260fc151a1b2d46b
powerpc/powernv: move opal console flushing to udbg

OPAL console writes do not have to synchronously flush firmware /
hardware buffers unless they are going through the udbg path.

Remove the unconditional flushing from opal_put_chars. Flush if
there was no space in the buffer as an optimisation (callers loop
waiting for success in that case). udbg flushing is moved to
udbg_opal_putc.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c
drivers/tty/hvc/hvc_opal.c