diff mbox series

soundwire: qcom: Log clk_get("iface") failures

Message ID 20230721164901.2155287-1-quic_bjorande@quicinc.com
State Accepted
Commit 95b0f3aa71eb09d067d89395fdb7f2dd87feae18
Headers show
Series soundwire: qcom: Log clk_get("iface") failures | expand

Commit Message

Bjorn Andersson July 21, 2023, 4:49 p.m. UTC
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>
---
 drivers/soundwire/qcom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vinod Koul Sept. 21, 2023, 9:38 a.m. UTC | #1
On Fri, 21 Jul 2023 09:49:01 -0700, Bjorn Andersson wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] soundwire: qcom: Log clk_get("iface") failures
      commit: 95b0f3aa71eb09d067d89395fdb7f2dd87feae18

Best regards,
diff mbox series

Patch

diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c
index 55be9f4b8d59..e51b1dfce82d 100644
--- a/drivers/soundwire/qcom.c
+++ b/drivers/soundwire/qcom.c
@@ -1550,7 +1550,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;
 	}