clk: tegra: divider: Check UART's divider enable-bit state on rate's recalculation
authorDmitry Osipenko <digetx@gmail.com>
Wed, 18 Dec 2019 18:44:05 +0000 (21:44 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 10 Jan 2020 14:50:05 +0000 (15:50 +0100)
commitcf83a28f281fb3cce090e1b99d31b26baef9c13b
treec6c43710dfe55a7f154c0df9faefc1384ad197a1
parentd8edf5280c455826a87b4e1837cd8f06bb457807
clk: tegra: divider: Check UART's divider enable-bit state on rate's recalculation

UART clock is divided using divisor values from DLM/DLL registers when
enable-bit is unset in clk register and clk's divider configuration isn't
taken onto account in this case. This doesn't cause any problems, but
let's add a check for the divider's enable-bit state, for consistency.

Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-divider.c