u-boot/drivers/clk
Claudiu Beznea b364134f87 clk: get clock pointer before proceeding
clk_get_by_indexed_prop() retrieves a clock with dev member being set
with the pointer to the udevice for the clock controller driver. But
in case of CCF each clock driver has set in dev member the reference
to its parent (the root of the clock tree is a fixed clock, every
node in clock tree is a clock registered with clk_register()). In this
case the subsequent operations like dev_get_clk_ptr() on clocks
retrieved by clk_get_by_indexed_prop() will fail. For this, get the
pointer to the proper clock registered (with clk_register()) using
clk_get_by_id() before proceeding.

Fixes: 1d7993d1d0 ("clk: Port Linux common clock framework [CCF] for imx6q to U-boot (tag: v5.1.12)")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-09-22 11:27:18 +03:00
..
altera treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
analogbits clk: sifive: Sync-up WRPLL library with upstream Linux 2019-07-19 14:24:51 +08:00
aspeed treewide: convert devfdt_get_addr_ptr() to dev_read_addr_ptr() 2020-08-22 08:53:37 -06:00
at91 treewide: convert devfdt_get_addr_ptr() to dev_read_addr_ptr() 2020-08-22 08:53:37 -06:00
exynos treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
imx clk: imx6: Add definition for IMX6QDL_CLK_ENET_REF clock 2020-08-24 11:03:26 +02:00
intel x86: remove dead code in intel_clk_get_rate() 2020-03-05 18:19:40 +08:00
kendryte clk: Drop dm.h header file in clk-provider.h 2020-08-03 22:19:54 -04:00
mediatek clk: mt7622: add needed clocks for ssusb-node 2020-08-24 14:11:31 -04:00
meson common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mtmips clk: add clock driver for MediaTek MT76x8 platform 2019-10-25 17:20:44 +02:00
mvebu common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
owl clk: actions: Add Ethernet clocks 2020-07-07 16:09:22 -04:00
renesas binman support for FIT 2020-07-27 11:15:37 -04:00
rockchip drivers: clk: rockchip: clk_rk3328: Add SPI support 2020-07-22 20:22:00 +08:00
sifive sifive: reset: add DM based reset driver for SiFive SoC's 2020-08-04 09:19:41 +08:00
sunxi common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tegra common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
uniphier treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
clk-cdce9xx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk-composite.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk-divider.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk-fixed-factor.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk-gate.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk-hsdk-cgu.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk-mux.c clk: ccf: Add missing #include <dm/uclass.h> to clk-mux.c 2020-08-24 11:36:34 +02:00
clk-ti-sci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
clk-uclass.c clk: get clock pointer before proceeding 2020-09-22 11:27:18 +03:00
clk.c clk: check hw and hw->dev before dereference it 2020-09-22 11:27:18 +03:00
clk_bcm6345.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_boston.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_fixed_factor.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
clk_fixed_rate.c clk: fixed_rate: add dummy enable() function 2020-01-16 09:39:45 -05:00
clk_octeon.c clk: clk_octeon: Add simple MIPS Octeon clock driver 2020-08-03 21:11:41 +02:00
clk_pic32.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_sandbox.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
clk_sandbox_ccf.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk_sandbox_test.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
clk_stm32f.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_stm32h7.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_stm32mp1.c arm: stm32mp: add weak function to save vddcore 2020-07-07 16:01:23 +02:00
clk_versal.c clk: versal: Move pm_query_id out of clock driver 2020-08-20 10:57:46 +02:00
clk_vexpress_osc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_zynq.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
clk_zynqmp.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ics8n3qv01.c clk: ICS8N3QV01 remove superfluous code 2020-08-24 11:03:26 +02:00
Kconfig clk: clk_octeon: Add simple MIPS Octeon clock driver 2020-08-03 21:11:41 +02:00
Makefile clk: clk_octeon: Add simple MIPS Octeon clock driver 2020-08-03 21:11:41 +02:00
mpc83xx_clk.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mpc83xx_clk.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00