]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
serial: 8250_dw: Pass the same rate to the clk round and set rate methods
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Thu, 23 Jul 2020 00:33:56 +0000 (03:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 15:14:39 +0000 (17:14 +0200)
commit0be160cf86f96dbc2d1cb74f9eef3581a2ad7971
treee22181d48757183c8d99743c2ec7788eac064ef9
parent442fdef1b931181a45ce4fce68b7675f7a78ec3a
serial: 8250_dw: Pass the same rate to the clk round and set rate methods

Indeed according to the clk API if clk_round_rate() has successfully
accepted a rate, then in order setup the clock with value returned by the
clk_round_rate() the clk_set_rate() method must be called with the
original rate value.

Suggested-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Link: https://lore.kernel.org/r/20200723003357.26897-4-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c