serial: 8250_dw: Add StarFive JH7100 quirk
authorEmil Renner Berthing <kernel@esmil.dk>
Mon, 4 Oct 2021 17:40:29 +0000 (19:40 +0200)
committerEmil Renner Berthing <kernel@esmil.dk>
Thu, 16 Dec 2021 16:24:23 +0000 (17:24 +0100)
commitb0ad20a3b64bf653a717860819691b262c0b2a2b
tree29479b9d5bd6429198d9336ce66fcc4b35d559bf
parentd0b65b1500973fef840dbc4bb9f9c237db2b761f
serial: 8250_dw: Add StarFive JH7100 quirk

On the StarFive JH7100 RISC-V SoC the UART core clocks can't be set to
exactly 16 * 115200Hz and many other common bitrates. Trying this will
only result in a higher input clock, but low enough that the UART's
internal divisor can't come close enough to the baud rate target.
So rather than try to set the input clock it's better to skip the
clk_set_rate call and rely solely on the UART's internal divisor.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
drivers/tty/serial/8250/8250_dw.c