From 658e2b1558d446a4dd9effc24308cfbe8d16618f Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Thu, 9 Oct 2014 17:23:10 +1100 Subject: uart: Give UART it's own OPAL console callbacks instead of dummy console This means the Linux output no longer gets into our internal log, which makes dumping of it from Linux a lot nicer. It will also allow us to improve the way we do the bufferring for Linux and to exploit eventually the TX interrupts. It will also allow us to implement some form of timeouts for the OPAL console variant of it so we don't get stuck of the BMC doesn't consume from the virtual UART. Signed-off-by: Benjamin Herrenschmidt --- core/console.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'core/console.c') diff --git a/core/console.c b/core/console.c index 9b41962..111d64f 100644 --- a/core/console.c +++ b/core/console.c @@ -313,18 +313,13 @@ opal_call(OPAL_CONSOLE_READ, dummy_console_read, 3); static void dummy_console_poll(void *data __unused) { - bool uart_has_data; - lock(&con_lock); - uart_has_data = uart_console_poll(); - - if (uart_has_data || memcons.in_prod != memcons.in_cons) + if (memcons.in_prod != memcons.in_cons) opal_update_pending_evt(OPAL_EVENT_CONSOLE_INPUT, OPAL_EVENT_CONSOLE_INPUT); else opal_update_pending_evt(OPAL_EVENT_CONSOLE_INPUT, 0); unlock(&con_lock); - } void dummy_console_add_nodes(void) -- cgit v1.1