summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/max310x.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2018-01-25 14:30:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-28 13:30:09 +0100
commiteefadcbca7f394fb9248384f2c759ebbe81e20c7 (patch)
tree189526ccec551d899566c00164d504760dd8da0f /drivers/tty/serial/max310x.c
parentserial: altera: don't enable any irq if the device doesn't feature an irq (diff)
downloadlinux-eefadcbca7f394fb9248384f2c759ebbe81e20c7.tar.xz
linux-eefadcbca7f394fb9248384f2c759ebbe81e20c7.zip
serial: altera: set RRDY flag also without irq
The UART can be operated without an irq. In this case a timer is setup that regularily calls altera_uart_interrupt(). The receiving part depends on pp->imr having the bit ALTERA_UART_STATUS_RRDY_MSK set, otherwise altera_uart_rx_chars() is never called. So ensure that the bit gets set (disguised as ALTERA_UART_CONTROL_RRDY_MSK) by not returning early from altera_uart_startup() if port->irq is 0. This doesn't affect the hardware as the ALTERA_UART_CONTROL_RRDY_MSK bit isn't actually written to the control register. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/max310x.c')
0 files changed, 0 insertions, 0 deletions