tty/serial: at91: fix bad offset for UART timeout register
authorLudovic Desroches <ludovic.desroches@atmel.com>
Mon, 22 Feb 2016 14:18:55 +0000 (15:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2016 00:11:14 +0000 (16:11 -0800)
commit2958ccee3690717f711431b546d7f194d8fa4f8b
tree38686fd3ebb38d0e357b3722c97106397afb09d4
parentf4a8ab04ddde078a9e9906e1ca8d6821ac91e717
tty/serial: at91: fix bad offset for UART timeout register

With SAMA5D2, the UART has hw timeout but the offset of the register to
define this value is not the same as the one for USART.
When using the new UART, the value of this register was 0 so we never
get timeout irqs. It involves that when using DMA, we were stuck until
the execution of the dma callback which happens when a buffer is full
(so after receiving 2048 bytes).

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c
include/linux/atmel_serial.h