tty/serial: at91: fix I/O accesses on RHR and THR for AVR32
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 30 Jul 2015 14:33:38 +0000 (16:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 05:07:22 +0000 (22:07 -0700)
commita649943522de07e67a5981b1ff227684b94bada4
treeba03e74b222420b53e57538024113ee8c20574de
parentb737eeb09e3068b092e116f855aa1973fa24c88c
tty/serial: at91: fix I/O accesses on RHR and THR for AVR32

This patch fixes I/O accesses on the Receiver Holding Register and on the
Transmitter Holding Register. Indeed AVR32 can only perform 32bit I/O
accesses on registers: using 8bit I/O accesses would read or write garbage
data.

Fixes: commit b5199d468177 ("tty/serial: at91: add support to FIFOs")
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c