]> 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)
commit0b37e44320353a12630c4ee753160577386e4093
tree97348ecd1134a6e2f5afb66c5540981266d2f60c
parenta98b3fc36b363929c75daed7e5143c935911e821
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