soundwire: qcom: Log clk_get("iface") failures
authorBjorn Andersson <quic_bjorande@quicinc.com>
Fri, 21 Jul 2023 16:49:01 +0000 (09:49 -0700)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Sep 2023 09:33:40 +0000 (11:33 +0200)
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>
drivers/soundwire/qcom.c

index d0bb995a59ef4b050e64f2bf6ab8a8f829faaeb2..a1e2d6c98186288030d877034ed4e86575bb6c92 100644 (file)
@@ -1562,7 +1562,7 @@ static int qcom_swrm_probe(struct platform_device *pdev)
 
        ctrl->hclk = devm_clk_get(dev, "iface");
        if (IS_ERR(ctrl->hclk)) {
-               ret = PTR_ERR(ctrl->hclk);
+               ret = dev_err_probe(dev, PTR_ERR(ctrl->hclk), "unable to get iface clock\n");
                goto err_init;
        }