]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3ac2e7dacbdf7ed84b724e3b0b27196e5722b9c
treeea1fbf4f4ec19a771adf1c7ce42272cd12aea3ab
parente726175e6170bf7501f52e79a3ba04a2d1ccb5e3
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