serial: altera: ensure port->regshift is honored consistently
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 25 Jan 2018 13:30:43 +0000 (14:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Feb 2018 12:30:09 +0000 (13:30 +0100)
commit0e254963b6ba4d63ac911e79537fea38dd03dc50
treef283370fddbd7ac30fa20db40e6e40f874b6953f
parentf54450ad1942287cc76b38021c0441fc4901d2de
serial: altera: ensure port->regshift is honored consistently

Most register accesses in the altera driver honor port->regshift by
using altera_uart_writel(). There are a few accesses however that were
missed when the driver was converted to use port->regshift and some
others were added later in commit 4d9d7d896d77 ("serial: altera_uart:
add earlycon support").

Fixes: 2780ad42f5fe ("tty: serial: altera_uart: Use port->regshift to store bus shift")
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>
drivers/tty/serial/altera_uart.c