tty: serial: msm: Support big-endian CPUs
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 30 Jun 2014 21:54:01 +0000 (14:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 23:10:42 +0000 (16:10 -0700)
commit68252424a7c757ce0a534696e22e1770408bc01d
tree9258881ca0da38a901e21f432a6e4f1685428c56
parentdb3a1a43fbb3c0e2f993ce5e7305641075eeb1d6
tty: serial: msm: Support big-endian CPUs

To support big-endian CPUs use the string versions of the io
read/write macros on the TX/RX fifos and the non-raw variants of
the readl/writel macros throughout. This way we don't byteswap
the characters coming from the fifos but we properly deal with
the little-endian nature of the serial hardware while controlling
it.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/msm_serial.c
drivers/tty/serial/msm_serial.h