Skip to content

Commit 05123e3

Browse files
Raviteja LaggyshettyGeorgi Djakov
authored andcommitted
interconnect: qcom: icc-rpmh: probe defer incase of missing QoS clock dependency
Return -EPROBE_DEFER from interconnect provider incase probe defer is received from devm_clk_bulk_get_all(). This would help in reattempting the inteconnect driver probe, once the required QoS clocks are available. Suggested-by: Bjorn Andersson <[email protected]> Signed-off-by: Raviteja Laggyshetty <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Fixes: 0a7be6b ("interconnect: qcom: icc-rpmh: Add QoS configuration support") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent 9852d85 commit 05123e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/interconnect/qcom/icc-rpmh.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ int qcom_icc_rpmh_probe(struct platform_device *pdev)
311311
}
312312

313313
qp->num_clks = devm_clk_bulk_get_all(qp->dev, &qp->clks);
314+
if (qp->num_clks == -EPROBE_DEFER)
315+
return dev_err_probe(dev, qp->num_clks, "Failed to get QoS clocks\n");
316+
314317
if (qp->num_clks < 0 || (!qp->num_clks && desc->qos_clks_required)) {
315318
dev_info(dev, "Skipping QoS, failed to get clk: %d\n", qp->num_clks);
316319
goto skip_qos_config;

0 commit comments

Comments
 (0)