Skip to content

Commit 95b0f3a

Browse files
quic-bjorandevinodkoul
authored andcommitted
soundwire: qcom: Log clk_get("iface") failures
Failing to acquire the iface clock makes probing of the Qualcomm SoundWire driver fail without providing any indication to the user. Make the driver log the error to aid debugging system configuration issues. Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Reviewed-by: Andrew Halaney <ahalaney@redhat.com> Link: https://lore.kernel.org/r/20230721164901.2155287-1-quic_bjorande@quicinc.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 16d568c commit 95b0f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soundwire/qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ static int qcom_swrm_probe(struct platform_device *pdev)
15621562

15631563
ctrl->hclk = devm_clk_get(dev, "iface");
15641564
if (IS_ERR(ctrl->hclk)) {
1565-
ret = PTR_ERR(ctrl->hclk);
1565+
ret = dev_err_probe(dev, PTR_ERR(ctrl->hclk), "unable to get iface clock\n");
15661566
goto err_init;
15671567
}
15681568

0 commit comments

Comments
 (0)