summaryrefslogtreecommitdiffstats
path: root/core/console.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-09 17:23:10 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-15 14:45:28 +1100
commit658e2b1558d446a4dd9effc24308cfbe8d16618f (patch)
tree7c350af857e304e4751ab37acbd792c1b2c07fa1 /core/console.c
parent744c79548c78db31217b78855b7075f5fd0b92c1 (diff)
downloadtalos-skiboot-658e2b1558d446a4dd9effc24308cfbe8d16618f.tar.gz
talos-skiboot-658e2b1558d446a4dd9effc24308cfbe8d16618f.zip
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 <benh@kernel.crashing.org>
Diffstat (limited to 'core/console.c')
-rw-r--r--core/console.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/console.c b/core/console.c
index 9b419627..111d64f8 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)
OpenPOWER on IntegriCloud