aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-02-01 12:46:00 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-02-01 12:46:00 -0500
commitdb5933225f2fe50d3b91ebbba73ed9c3b703b99a (patch)
treeb0178b4e74c9284d8c7ca6beb46e999b3b15d1f9 /include/linux
parente4ee8b85b7657d9c769b727038faabdc2e6a3412 (diff)
parentc7e1b4059075c9e8eed101d7cc5da43e95eb5e18 (diff)
Merge tag 'tty-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/staging driver updates from Greg KH: "Here is the big tty/serial driver update for 4.16-rc1. The usual number of various serial driver fixes and updates to try to get them to work with crazy hardware configurations (seriously, how many different ways are hardware engineers going to come up with to hook up a simple UART?) There is also some serdev bugfixes and updates, as well as a smattering of other small fixes in here. All have been in the linux-next tree for a while, with no reported issues" * tag 'tty-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (65 commits) tty: serial: exar: Relocate sleep wake-up handling tty: fix data race between tty_init_dev and flush of buf serial: imx: fix endless loop during suspend serial: core: mark port as initialized after successful IRQ change serdev: only match serdev devices serdev: do not generate modaliases for controllers serial: mxs-auart: don't use GPIOF_* with gpiod_get_direction serial: 8250_dw: Revert "Improve clock rate setting" MAINTAINERS: Add myself as designated reviewer for 8250_dw gpio: serial: max310x: Support open-drain configuration for GPIOs serdev: Fix serdev_uevent failure on ACPI enumerated serdev-controllers serial: 8250_ingenic: Parse earlycon options serial: 8250_ingenic: Add support for the JZ4770 SoC serial: core: Make uart_parse_options take const char* argument serial: 8250_of: fix return code when probe function fails to get reset serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS serial: 8250_uniphier: fix error return code in uniphier_uart_probe() tty: n_gsm: Allow ADM response in addition to UA for control dlci tty: omap-serial: Fix initial on-boot RTS GPIO level tty: serial: jsm: Add one check against NULL pointer dereference ...
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/serdev.h6
-rw-r--r--include/linux/serial_core.h8
-rw-r--r--include/linux/tty.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/serdev.h b/include/linux/serdev.h
index 531031a15cdd..f153b2c7f0cd 100644
--- a/include/linux/serdev.h
+++ b/include/linux/serdev.h
@@ -27,8 +27,10 @@ struct serdev_device;
27 27
28/** 28/**
29 * struct serdev_device_ops - Callback operations for a serdev device 29 * struct serdev_device_ops - Callback operations for a serdev device
30 * @receive_buf: Function called with data received from device. 30 * @receive_buf: Function called with data received from device;
31 * @write_wakeup: Function called when ready to transmit more data. 31 * returns number of bytes accepted; may sleep.
32 * @write_wakeup: Function called when ready to transmit more data; must
33 * not sleep.
32 */ 34 */
33struct serdev_device_ops { 35struct serdev_device_ops {
34 int (*receive_buf)(struct serdev_device *, const unsigned char *, size_t); 36 int (*receive_buf)(struct serdev_device *, const unsigned char *, size_t);
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 37b044e78333..4c310c34ddad 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -387,7 +387,7 @@ struct uart_port *uart_get_console(struct uart_port *ports, int nr,
387 struct console *c); 387 struct console *c);
388int uart_parse_earlycon(char *p, unsigned char *iotype, resource_size_t *addr, 388int uart_parse_earlycon(char *p, unsigned char *iotype, resource_size_t *addr,
389 char **options); 389 char **options);
390void uart_parse_options(char *options, int *baud, int *parity, int *bits, 390void uart_parse_options(const char *options, int *baud, int *parity, int *bits,
391 int *flow); 391 int *flow);
392int uart_set_options(struct uart_port *port, struct console *co, int baud, 392int uart_set_options(struct uart_port *port, struct console *co, int baud,
393 int parity, int bits, int flow); 393 int parity, int bits, int flow);
@@ -501,9 +501,5 @@ static inline int uart_handle_break(struct uart_port *port)
501 (cflag) & CRTSCTS || \ 501 (cflag) & CRTSCTS || \
502 !((cflag) & CLOCAL)) 502 !((cflag) & CLOCAL))
503 503
504/* 504void uart_get_rs485_mode(struct device *dev, struct serial_rs485 *rs485conf);
505 * Common device tree parsing helpers
506 */
507void of_get_rs485_mode(struct device_node *np, struct serial_rs485 *rs485conf);
508
509#endif /* LINUX_SERIAL_CORE_H */ 505#endif /* LINUX_SERIAL_CORE_H */
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 7ac8ba208b1f..0a6c71e0ad01 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -405,6 +405,8 @@ extern const char *tty_name(const struct tty_struct *tty);
405extern struct tty_struct *tty_kopen(dev_t device); 405extern struct tty_struct *tty_kopen(dev_t device);
406extern void tty_kclose(struct tty_struct *tty); 406extern void tty_kclose(struct tty_struct *tty);
407extern int tty_dev_name_to_number(const char *name, dev_t *number); 407extern int tty_dev_name_to_number(const char *name, dev_t *number);
408extern int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout);
409extern void tty_ldisc_unlock(struct tty_struct *tty);
408#else 410#else
409static inline void tty_kref_put(struct tty_struct *tty) 411static inline void tty_kref_put(struct tty_struct *tty)
410{ } 412{ }