]> asedeno.scripts.mit.edu Git - linux.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)
commit66dd99c2033684169f04068f66c7f83f7da229b8
tree97348ecd1134a6e2f5afb66c5540981266d2f60c
parent903f9db10f18f735e62ba447147b6c434b6af003
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