]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_uniphier: fix dl_read and dl_write functions
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 19 Oct 2015 04:37:55 +0000 (13:37 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Dec 2015 05:42:31 +0000 (21:42 -0800)
commite87e26164a181ea9d27dcc0d6ba9cd4a895b1d59
tree92f9ac1b12c1914af7cab91cf60fd6e426e13e4c
parent0d6307f0ff0e2b8c4dd21c0e87811f2d16d3c4ce
serial: 8250_uniphier: fix dl_read and dl_write functions

The register offset must be shifted by regshift, otherwise the
baudrate is not set.  I missed the issue probably because the
divisor register was already set by the boot loader.

Fixes: de246bb64cb8 ("serial: 8250_uniphier: add UniPhier serial driver")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_uniphier.c