]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: Don't overwrite clock selection in serial_console_write()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 18 Nov 2015 15:20:44 +0000 (16:20 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 17 Dec 2015 10:18:21 +0000 (11:18 +0100)
commit9eb8f547e66914560ef42304f22509b62d8fb5f7
tree95bb666b37a6ec72618b4c35cd177c0aa99398bd
parent65f25850d234792b9e279d6b9dc4a896452c03ed
serial: sh-sci: Don't overwrite clock selection in serial_console_write()

Blindly writing the default configuration value into the SCSCR register
may change the clock selection bits, breaking the serial console if the
current driver settings differ from the default settings.

Keep the current clock selection bits to prevent this from happening
on e.g. r8a7791/koelsch when support for the BRG will be added.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c