]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit53bcd72bb6b40073ecf646f4ea8c02a9db666203
treea05a247fbce13f4509b56d2f01adf544b57b7e34
parent83363730a007950f65f6402ae2d17e2cf1c11ca0
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