Skip to contentSkip to conversation

abusing early serial console init for resume

DISCUSSION Carl-Daniel Hailfinger 1 participant 1 message May 11, 2005 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

Hi,

is it possible to use the code from drivers/serial/8250_early.c to make the serial console work again during resume from suspend-to-RAM? It seems my serial port loses its state during suspend and for debugging poweron crashes having a working serial console is absolutely essential.

Having working suspend/resume in the generic serial driver would be great, too, but I'm not demanding that. I'll settle for any hackish solution which brings my serial console back before the system has a chance to commit suicide.

At a first glance, it seems removing __init from all functions in 8250_early.c and calling early_uart_setup during resume could work just fine.

Regards,
Carl-Daniel

Signature · 1 line
http://www.hailfinger.org/