diff options
Diffstat (limited to 'include/linux/serial_core.h')
-rw-r--r-- | include/linux/serial_core.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 2db407a40051..65db9928e15f 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
@@ -310,6 +310,7 @@ struct uart_port { | |||
310 | int (*handle_irq)(struct uart_port *); | 310 | int (*handle_irq)(struct uart_port *); |
311 | void (*pm)(struct uart_port *, unsigned int state, | 311 | void (*pm)(struct uart_port *, unsigned int state, |
312 | unsigned int old); | 312 | unsigned int old); |
313 | void (*handle_break)(struct uart_port *); | ||
313 | unsigned int irq; /* irq number */ | 314 | unsigned int irq; /* irq number */ |
314 | unsigned long irqflags; /* irq flags */ | 315 | unsigned long irqflags; /* irq flags */ |
315 | unsigned int uartclk; /* base uart clock */ | 316 | unsigned int uartclk; /* base uart clock */ |
@@ -533,6 +534,10 @@ uart_handle_sysrq_char(struct uart_port *port, unsigned int ch) | |||
533 | static inline int uart_handle_break(struct uart_port *port) | 534 | static inline int uart_handle_break(struct uart_port *port) |
534 | { | 535 | { |
535 | struct uart_state *state = port->state; | 536 | struct uart_state *state = port->state; |
537 | |||
538 | if (port->handle_break) | ||
539 | port->handle_break(port); | ||
540 | |||
536 | #ifdef SUPPORT_SYSRQ | 541 | #ifdef SUPPORT_SYSRQ |
537 | if (port->cons && port->cons->index == port->line) { | 542 | if (port->cons && port->cons->index == port->line) { |
538 | if (!port->sysrq) { | 543 | if (!port->sysrq) { |