diff options
author | 2021-06-25 00:49:02 +0200 | |
---|---|---|
committer | 2021-06-25 13:53:32 +0200 | |
commit | deeaf963569a0d9d1b08babb771f61bb501a5704 (patch) | |
tree | 7f07775b9795a1731c2c51d664a02204b8fef025 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | serial: mvebu-uart: do not allow changing baudrate when uartclk is not available (diff) | |
download | wireguard-linux-deeaf963569a0d9d1b08babb771f61bb501a5704.tar.xz wireguard-linux-deeaf963569a0d9d1b08babb771f61bb501a5704.zip |
serial: mvebu-uart: correctly calculate minimal possible baudrate
For default (x16) scheme which is currently used by mvebu-uart.c driver,
maximal divisor of UART base clock is 1023*16. Therefore there is limit for
minimal supported baudrate. This change calculate it correctly and prevents
setting invalid divisor 0 into hardware registers.
Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: 68a0db1d7da2 ("serial: mvebu-uart: add function to change baudrate")
Link: https://lore.kernel.org/r/20210624224909.6350-4-pali@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions