clk: imx: clk-fracn-gppll: Return rate in rate table properly in ->recalc_rate()
authorLiu Ying <victor.liu@nxp.com>
Thu, 9 Jun 2022 13:29:00 +0000 (21:29 +0800)
committerAbel Vesa <abelvesa@kernel.org>
Thu, 16 Jun 2022 14:28:59 +0000 (17:28 +0300)
commit5ebaf9f7da5bb2dc56d394eabfcbe46dc6b1ea8d
tree3dce76c916bba45081db458c588e39186284b693
parent044034efbeea05f65c09d2ba15ceeab53b60e947
clk: imx: clk-fracn-gppll: Return rate in rate table properly in ->recalc_rate()

The PLL parameters in rate table should be directly compared with
those read from PLL registers instead of the cooked ones.

Fixes: 1b26cb8a77a4 ("clk: imx: support fracn gppll")
Cc: Abel Vesa <abel.vesa@nxp.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20220609132902.3504651-6-peng.fan@oss.nxp.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
drivers/clk/imx/clk-fracn-gppll.c