linux/drivers/clk/actions
Manivannan Sadhasivam ed309bfb48 clk: actions: Fix factor clk struct member access
Since the helper "owl_factor_helper_round_rate" is shared between factor
and composite clocks, using the factor clk specific helper function
like "hw_to_owl_factor" to access its members will create issues when
called from composite clk specific code. Hence, pass the "factor_hw"
struct pointer directly instead of fetching it using factor clk specific
helpers.

This issue has been observed when a composite clock like "sd0_clk" tried
to call "owl_factor_helper_round_rate" resulting in pointer dereferencing
error.

While we are at it, let's rename the "clk_val_best" function to
"owl_clk_val_best" since this is an owl SoCs specific helper.

Fixes: 4bb78fc974 ("clk: actions: Add factor clock support")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190916154546.24982-2-manivannan.sadhasivam@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2019-09-17 12:54:44 -07:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
owl-common.c clk: actions: Cache regmap info in private clock descriptor 2018-10-16 14:40:54 -07:00
owl-common.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-composite.c clk: actions: Add composite clock support 2018-04-06 14:25:18 -07:00
owl-composite.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-divider.c clk: actions: Add divider clock support 2018-04-06 14:18:17 -07:00
owl-divider.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-factor.c clk: actions: Fix factor clk struct member access 2019-09-17 12:54:44 -07:00
owl-factor.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-fixed-factor.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-gate.c
owl-gate.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-mux.c clk: actions: Add mux clock support 2018-04-06 14:17:46 -07:00
owl-mux.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-pll.c clk: actions: Add configurable PLL delay 2019-02-21 23:58:12 -08:00
owl-pll.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-reset.c clk: actions: Add Actions Semi Owl SoCs Reset Management Unit support 2018-10-16 14:41:39 -07:00
owl-reset.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-s500.c clk: actions: Add clock driver for S500 SoC 2019-02-22 00:01:08 -08:00
owl-s700.c clk: actions: Add Actions Semi S700 SoC Reset Management Unit support 2018-10-16 14:41:47 -07:00
owl-s900.c clk: actions: Add Actions Semi S900 SoC Reset Management Unit support 2018-10-16 14:41:53 -07:00