]> git.baikalelectronics.ru Git - uboot.git/commit
clk: fix assigned-clocks to pass with deferring provider
authorTero Kristo <t-kristo@ti.com>
Fri, 11 Jun 2021 08:45:11 +0000 (11:45 +0300)
committerLokesh Vutla <lokeshvutla@ti.com>
Fri, 11 Jun 2021 11:04:52 +0000 (16:34 +0530)
commit0b6f119186b0aa4554ab9273039db3361b939dbd
tree326e6c0a3ecfa077699b02f3c91cd1086e32f0e4
parent87d0c5ac94066f5f6d3492bc852a69e5bc5b9075
clk: fix assigned-clocks to pass with deferring provider

If a clock provider is not ready for assigning default rates/parents
during its probe, it may return -EPROBE_DEFER directly from xlate.
Handle this special case properly by skipping the entry and adjusting the
return value to pass. The defaults will be handled properly in post probe
phase then.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tero Kristo <kristo@kernel.org>
drivers/clk/clk-uclass.c