linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: clk-fixed-factor: Return EPROBE_DEFER to wait for dependent drivers
@ 2019-03-25  4:59 shubhrajyoti.datta
  0 siblings, 0 replies; only message in thread
From: shubhrajyoti.datta @ 2019-03-25  4:59 UTC (permalink / raw)
  To: linux-clk; +Cc: mturquette, sboyd, Shubhrajyoti Datta

From: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>

In case the provider clock is not yet proved the fixed factor does not
find the name of the input clock and it returns ENOMEM.
Let's return DEFER in such cases.

Fixes a boot failure on zynqmp.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
---
The other option is to provide the name is the output-clocks

 drivers/clk/clk-fixed-factor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
index 241b3f8..a3ea6b8 100644
--- a/drivers/clk/clk-fixed-factor.c
+++ b/drivers/clk/clk-fixed-factor.c
@@ -221,7 +221,7 @@ static int of_fixed_factor_clk_probe(struct platform_device *pdev)
 	 */
 	clk = _of_fixed_factor_clk_setup(pdev->dev.of_node);
 	if (IS_ERR(clk))
-		return PTR_ERR(clk);
+		return -EPROBE_DEFER;
 
 	platform_set_drvdata(pdev, clk);
 
-- 
2.1.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-25  5:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-25  4:59 [PATCH] clk: clk-fixed-factor: Return EPROBE_DEFER to wait for dependent drivers shubhrajyoti.datta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).