diff options
| author | Rob Herring <robh@kernel.org> | 2014-05-20 15:22:54 -0400 |
|---|---|---|
| committer | Rob Herring <robh@kernel.org> | 2014-05-20 15:22:54 -0400 |
| commit | 6e87b7030e3ef2c7ad01fcaa1b46d3ebe6c261e7 (patch) | |
| tree | e01eaf5fcfed6767da9fcfd8f5120ef667c81bb8 /include/linux | |
| parent | eafd370dfe487facfdef499057f4eac9aa0b4bf5 (diff) | |
| parent | e26f1db9b8d74617519e50b41749900d0a257406 (diff) | |
Merge branch 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty into for-next
Conflicts:
arch/arm64/kernel/early_printk.c
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/serial_core.h | 16 | ||||
| -rw-r--r-- | include/linux/tty_ldisc.h | 5 |
2 files changed, 20 insertions, 1 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index f729be981da0..7a15b5b24c0b 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
| @@ -285,6 +285,22 @@ static inline int uart_poll_timeout(struct uart_port *port) | |||
| 285 | /* | 285 | /* |
| 286 | * Console helpers. | 286 | * Console helpers. |
| 287 | */ | 287 | */ |
| 288 | struct earlycon_device { | ||
| 289 | struct console *con; | ||
| 290 | struct uart_port port; | ||
| 291 | char options[16]; /* e.g., 115200n8 */ | ||
| 292 | unsigned int baud; | ||
| 293 | }; | ||
| 294 | int setup_earlycon(char *buf, const char *match, | ||
| 295 | int (*setup)(struct earlycon_device *, const char *)); | ||
| 296 | |||
| 297 | #define EARLYCON_DECLARE(name, func) \ | ||
| 298 | static int __init name ## _setup_earlycon(char *buf) \ | ||
| 299 | { \ | ||
| 300 | return setup_earlycon(buf, __stringify(name), func); \ | ||
| 301 | } \ | ||
| 302 | early_param("earlycon", name ## _setup_earlycon); | ||
| 303 | |||
| 288 | struct uart_port *uart_get_console(struct uart_port *ports, int nr, | 304 | struct uart_port *uart_get_console(struct uart_port *ports, int nr, |
| 289 | struct console *c); | 305 | struct console *c); |
| 290 | void uart_parse_options(char *options, int *baud, int *parity, int *bits, | 306 | void uart_parse_options(char *options, int *baud, int *parity, int *bits, |
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h index add26da2faeb..00c9d688d7b7 100644 --- a/include/linux/tty_ldisc.h +++ b/include/linux/tty_ldisc.h | |||
| @@ -92,7 +92,10 @@ | |||
| 92 | * This function is called by the low-level tty driver to signal | 92 | * This function is called by the low-level tty driver to signal |
| 93 | * that line discpline should try to send more characters to the | 93 | * that line discpline should try to send more characters to the |
| 94 | * low-level driver for transmission. If the line discpline does | 94 | * low-level driver for transmission. If the line discpline does |
| 95 | * not have any more data to send, it can just return. | 95 | * not have any more data to send, it can just return. If the line |
| 96 | * discipline does have some data to send, please arise a tasklet | ||
| 97 | * or workqueue to do the real data transfer. Do not send data in | ||
| 98 | * this hook, it may leads to a deadlock. | ||
| 96 | * | 99 | * |
| 97 | * int (*hangup)(struct tty_struct *) | 100 | * int (*hangup)(struct tty_struct *) |
| 98 | * | 101 | * |
