]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/tty/serial/sh-sci.c
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)
commita67969b5fd366d488ffa1defd5256e8c3a87434d
tree95bb666b37a6ec72618b4c35cd177c0aa99398bd
parentbdcb3826976e60204cce52470c01bb9541e547b3
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