]> git.baikalelectronics.ru Git - kernel.git/commit
clk: rockchip: fix mmc get phase
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 3 Mar 2020 19:29:56 +0000 (20:29 +0100)
committerStephen Boyd <sboyd@kernel.org>
Fri, 6 Mar 2020 20:06:01 +0000 (12:06 -0800)
commit5f8f75c5a94178cd98135b03c9f610602945d0be
tree84fa396ebf33c06c1117ca1b37f540935e8b03d1
parent69e7cc852156ef53629e7cfaddf01fdfa29045e5
clk: rockchip: fix mmc get phase

If the mmc clock has no rate, it can be assumed to be constant.
In such case, there is no measurable phase shift. Just return 0
in this case instead of returning an error.

Fixes: 25088aa79c75 ("clk: Bail out when calculating phase fails during clk registration")
Tested-by: Markus Reichl <m.reichl@fivetechno.de>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lkml.kernel.org/r/20200303192956.64410-1-jbrunet@baylibre.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/rockchip/clk-mmc-phase.c