]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: xuartps: Setup early console when uartclk is also passed
authorMichal Simek <michal.simek@xilinx.com>
Mon, 23 Apr 2018 08:55:21 +0000 (10:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 09:12:22 +0000 (11:12 +0200)
commit0aafd73957ed80b75e2965e8416d3919b03dec85
tree97348ecd1134a6e2f5afb66c5540981266d2f60c
parent573058109b47e2d21e8b99b52f7da815c13cadef
tty: serial: xuartps: Setup early console when uartclk is also passed

Baudrate calculation depends on requested baudrate and uart clock.
This patch is checking that uartclk is also passed.

The same logic is used 8250_early.c/init_port function.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c