diff options
author | Ed Blake <ed.blake@imgtec.com> | 2016-11-10 13:07:54 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-16 04:59:38 -0500 |
commit | 98838d95075a5295f3478ceba18bcccf472e30f4 (patch) | |
tree | 9b38f47ee9a97a3810db662e0f168f7d0303d38b /drivers/tty | |
parent | 5fe86674840c6773d09943a78a5f7f3bf2420ffd (diff) |
serial: 8250: Add IrDA to UART capabilities
Add an IrDA UART capability flag and change the type of
uart_8250_port.capabilities to be u32 rather than unsigned short to
accommodate the additional flag.
Signed-off-by: Ed Blake <ed.blake@imgtec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/8250/8250.h | 1 | ||||
-rw-r--r-- | drivers/tty/serial/8250/8250_core.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250/8250.h b/drivers/tty/serial/8250/8250.h index 124e6e695a3a..ce8d4ffcc425 100644 --- a/drivers/tty/serial/8250/8250.h +++ b/drivers/tty/serial/8250/8250.h | |||
@@ -80,6 +80,7 @@ struct serial8250_config { | |||
80 | #define UART_CAP_RTOIE (1 << 13) /* UART needs IER bit 4 set (Xscale, Tegra) */ | 80 | #define UART_CAP_RTOIE (1 << 13) /* UART needs IER bit 4 set (Xscale, Tegra) */ |
81 | #define UART_CAP_HFIFO (1 << 14) /* UART has a "hidden" FIFO */ | 81 | #define UART_CAP_HFIFO (1 << 14) /* UART has a "hidden" FIFO */ |
82 | #define UART_CAP_RPM (1 << 15) /* Runtime PM is active while idle */ | 82 | #define UART_CAP_RPM (1 << 15) /* Runtime PM is active while idle */ |
83 | #define UART_CAP_IRDA (1 << 16) /* UART supports IrDA line discipline */ | ||
83 | 84 | ||
84 | #define UART_BUG_QUOT (1 << 0) /* UART has buggy quot LSB */ | 85 | #define UART_BUG_QUOT (1 << 0) /* UART has buggy quot LSB */ |
85 | #define UART_BUG_TXEN (1 << 1) /* UART has buggy TX IIR status */ | 86 | #define UART_BUG_TXEN (1 << 1) /* UART has buggy TX IIR status */ |
diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index 240a361b674f..13d04bf9547d 100644 --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c | |||
@@ -425,10 +425,10 @@ struct uart_8250_port *serial8250_get_port(int line) | |||
425 | EXPORT_SYMBOL_GPL(serial8250_get_port); | 425 | EXPORT_SYMBOL_GPL(serial8250_get_port); |
426 | 426 | ||
427 | static void (*serial8250_isa_config)(int port, struct uart_port *up, | 427 | static void (*serial8250_isa_config)(int port, struct uart_port *up, |
428 | unsigned short *capabilities); | 428 | u32 *capabilities); |
429 | 429 | ||
430 | void serial8250_set_isa_configurator( | 430 | void serial8250_set_isa_configurator( |
431 | void (*v)(int port, struct uart_port *up, unsigned short *capabilities)) | 431 | void (*v)(int port, struct uart_port *up, u32 *capabilities)) |
432 | { | 432 | { |
433 | serial8250_isa_config = v; | 433 | serial8250_isa_config = v; |
434 | } | 434 | } |