aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2014-09-05 15:02:37 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-08 19:32:36 -0400
commitb99b121b2aa42e60e5b73fdd3a49863337839c7b (patch)
tree99ea90710937cf97b3c534f4aeada8e1d337a921 /include/linux/serial_core.h
parentae14a7954f5124208e6e93cafb3099f83acd43f5 (diff)
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>
Diffstat (limited to 'include/linux/serial_core.h')
-rw-r--r--include/linux/serial_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 8cb267b1fcd5..3bd7d55eebce 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -122,6 +122,8 @@ struct uart_port {
122 void (*set_termios)(struct uart_port *, 122 void (*set_termios)(struct uart_port *,
123 struct ktermios *new, 123 struct ktermios *new,
124 struct ktermios *old); 124 struct ktermios *old);
125 int (*startup)(struct uart_port *port);
126 void (*shutdown)(struct uart_port *port);
125 int (*handle_irq)(struct uart_port *); 127 int (*handle_irq)(struct uart_port *);
126 void (*pm)(struct uart_port *, unsigned int state, 128 void (*pm)(struct uart_port *, unsigned int state,
127 unsigned int old); 129 unsigned int old);