tty: serial: 8250_core: allow to overwrite & export serial8250_startup()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 5 Sep 2014 19:02:37 +0000 (21:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 23:32:36 +0000 (16:32 -0700)
commitb99b121b2aa42e60e5b73fdd3a49863337839c7b
tree99ea90710937cf97b3c534f4aeada8e1d337a921
parentae14a7954f5124208e6e93cafb3099f83acd43f5
tty: serial: 8250_core: allow to overwrite & export serial8250_startup()

The OMAP version of the 8250 can actually use 1:1 serial8250_startup().
However it needs to be extended by a wake up irq which should to be
requested & enabled at ->startup() time and disabled at ->shutdown() time.

v2…v3: properly copy callbacks
v1…v2: add shutdown callback

Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
include/linux/serial_8250.h
include/linux/serial_core.h