serial: mvebu-uart: initialize over sampling stack register
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 23 Nov 2018 15:45:30 +0000 (16:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 08:20:17 +0000 (09:20 +0100)
commit35d7a58ac282e220a820e2bf996063a6c9a493c8
treea05a247fbce13f4509b56d2f01adf544b57b7e34
parent0e4cf69ede8751d25f733cd7a6f954c5b505fa03
serial: mvebu-uart: initialize over sampling stack register

The baudrate derivation relies on the state of the programmable over
sampling stack (OSAMP register) being empty, while never initializing
it.

Set all the fields of this register to 0 (except reserved areas) to
ensure a x16 divisor, as assumed by the driver.

The suspend/resume callbacks are untouched because they already
save/restore correctly this register.

Suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mvebu-uart.c