serial: 8250_dw: Do not use readl/writel before checking port iotype
authorNoam Camus <noamc@ezchip.com>
Sat, 12 Dec 2015 17:18:27 +0000 (19:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:28:23 +0000 (22:28 -0800)
commit5a43140cc4a59eda4549cc3b74989efa77973158
tree25218727ad1e775098077c0a8abaa10e1df0b786
parent4625090187768bc776d69dfaa6a1f79b1125debe
serial: 8250_dw: Do not use readl/writel before checking port iotype

Direct call to readl()/writel() is checked against iotype
and in case of UPIO_MEM32BE we use ioread32be()/iowrite32be()
instead of them.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c