Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7161870 authored by Taniya Das's avatar Taniya Das
Browse files

msm: npu: Add support to handle EPROBE defer



There could be a possibility for the clock driver to return EPROBE
defer, thus handle the same so as to probe again.

Change-Id: Id45df02ce4eb182196772f6d169e42b0418e8bff
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 68e4ea58
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1583,8 +1583,9 @@ static int npu_parse_dt_clock(struct npu_device *npu_dev)
			sizeof(core_clks[i].clk_name));
		core_clks[i].clk = devm_clk_get(&pdev->dev, clock_name);
		if (IS_ERR(core_clks[i].clk)) {
			if (PTR_ERR(core_clks[i].clk) != -EPROBE_DEFER)
				NPU_ERR("unable to get clk: %s\n", clock_name);
			rc = -EINVAL;
			rc = PTR_ERR(core_clks[i].clk);
			break;
		}