diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 00:05:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 00:05:31 -0500 |
commit | fb0255fb2941ef6f21742b2bc146d6b9aef4fedc (patch) | |
tree | 8334f3485152b1c887ddfe04ba9a95c8a704481c /drivers/tty/serial/bfin_uart.c | |
parent | 449fcf3ab0baf3dde9952385e6789f2ca10c3980 (diff) | |
parent | 57f5d648c45c3d40a3257c06629c14fd53c383bc (diff) |
Merge tag 'tty-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial updates from Greg KH:
"Here is the big tty/serial driver pull request for 4.15-rc1.
Lots of serial driver updates in here, some small vt cleanups, and a
raft of SPDX and license boilerplate cleanups, messing up the diffstat
a bit.
Nothing major, with no realy functional changes except better hardware
support for some platforms.
All of these have been in linux-next for a while with no reported
issues"
* tag 'tty-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (110 commits)
tty: ehv_bytechan: fix spelling mistake
tty: serial: meson: allow baud-rates lower than 9600
serial: 8250_fintek: Fix crash with baud rate B0
serial: 8250_fintek: Disable delays for ports != 0
serial: 8250_fintek: Return -EINVAL on invalid configuration
tty: Remove redundant license text
tty: serdev: Remove redundant license text
tty: hvc: Remove redundant license text
tty: serial: Remove redundant license text
tty: add SPDX identifiers to all remaining files in drivers/tty/
tty: serial: jsm: remove redundant pointer ts
tty: serial: jsm: add space before the open parenthesis '('
tty: serial: jsm: fix coding style
tty: serial: jsm: delete space between function name and '('
tty: serial: jsm: add blank line after declarations
tty: serial: jsm: change the type of local variable
tty: serial: imx: remove dead code imx_dma_rxint
tty: serial: imx: disable ageing timer interrupt if dma in use
serial: 8250: fix potential deadlock in rs485-mode
serial: m32r_sio: Drop redundant .data assignment
...
Diffstat (limited to 'drivers/tty/serial/bfin_uart.c')
-rw-r--r-- | drivers/tty/serial/bfin_uart.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/tty/serial/bfin_uart.c b/drivers/tty/serial/bfin_uart.c index 293ecbb00684..4755fa696321 100644 --- a/drivers/tty/serial/bfin_uart.c +++ b/drivers/tty/serial/bfin_uart.c | |||
@@ -1,11 +1,10 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0+ | ||
1 | /* | 2 | /* |
2 | * Blackfin On-Chip Serial Driver | 3 | * Blackfin On-Chip Serial Driver |
3 | * | 4 | * |
4 | * Copyright 2006-2011 Analog Devices Inc. | 5 | * Copyright 2006-2011 Analog Devices Inc. |
5 | * | 6 | * |
6 | * Enter bugs at http://blackfin.uclinux.org/ | 7 | * Enter bugs at http://blackfin.uclinux.org/ |
7 | * | ||
8 | * Licensed under the GPL-2 or later. | ||
9 | */ | 8 | */ |
10 | 9 | ||
11 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) | 10 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) |
@@ -456,8 +455,9 @@ static void bfin_serial_dma_rx_chars(struct bfin_serial_port *uart) | |||
456 | tty_flip_buffer_push(&uart->port.state->port); | 455 | tty_flip_buffer_push(&uart->port.state->port); |
457 | } | 456 | } |
458 | 457 | ||
459 | void bfin_serial_rx_dma_timeout(struct bfin_serial_port *uart) | 458 | void bfin_serial_rx_dma_timeout(struct timer_list *t) |
460 | { | 459 | { |
460 | struct bfin_serial_port *uart = from_timer(uart, t, rx_dma_timer); | ||
461 | int x_pos, pos; | 461 | int x_pos, pos; |
462 | unsigned long flags; | 462 | unsigned long flags; |
463 | 463 | ||
@@ -624,8 +624,6 @@ static int bfin_serial_startup(struct uart_port *port) | |||
624 | set_dma_start_addr(uart->rx_dma_channel, (unsigned long)uart->rx_dma_buf.buf); | 624 | set_dma_start_addr(uart->rx_dma_channel, (unsigned long)uart->rx_dma_buf.buf); |
625 | enable_dma(uart->rx_dma_channel); | 625 | enable_dma(uart->rx_dma_channel); |
626 | 626 | ||
627 | uart->rx_dma_timer.data = (unsigned long)(uart); | ||
628 | uart->rx_dma_timer.function = (void *)bfin_serial_rx_dma_timeout; | ||
629 | uart->rx_dma_timer.expires = jiffies + DMA_RX_FLUSH_JIFFIES; | 627 | uart->rx_dma_timer.expires = jiffies + DMA_RX_FLUSH_JIFFIES; |
630 | add_timer(&(uart->rx_dma_timer)); | 628 | add_timer(&(uart->rx_dma_timer)); |
631 | #else | 629 | #else |
@@ -1316,7 +1314,7 @@ static int bfin_serial_probe(struct platform_device *pdev) | |||
1316 | } | 1314 | } |
1317 | uart->rx_dma_channel = res->start; | 1315 | uart->rx_dma_channel = res->start; |
1318 | 1316 | ||
1319 | init_timer(&(uart->rx_dma_timer)); | 1317 | timer_setup(&uart->rx_dma_timer, bfin_serial_rx_dma_timeout, 0); |
1320 | #endif | 1318 | #endif |
1321 | 1319 | ||
1322 | #if defined(SERIAL_BFIN_CTSRTS) || \ | 1320 | #if defined(SERIAL_BFIN_CTSRTS) || \ |