Message ID | 20230721164901.2155287-1-quic_bjorande@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp348879vqg; Fri, 21 Jul 2023 10:11:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGlKsD/AmQf3mll0G0RFq74qgRaKkSqG7cr2szYgXQS1lkKINlObcwf7x2TtaXoRzlnlrsB X-Received: by 2002:a05:6a20:197:b0:101:1951:d491 with SMTP id 23-20020a056a20019700b001011951d491mr2098117pzy.6.1689959495802; Fri, 21 Jul 2023 10:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689959495; cv=none; d=google.com; s=arc-20160816; b=iRebE0ewgRm5/7TFlHhUZkLCZRNZUa06dZySod2aNSQ5hXHJaHRa2Y9qq20PzmLsFF 3FRVmQxM86RAbZlz+JeMhn8Gz17AIgAAtvp8sdbJtPfW7KyPsVKTFxtW6kib5B+BrPay dPgo7vbVyYsQn07LBv3GIXXfJV/3CH0YkbcZd4TeJ0t7qKSPRXcRt3YQUdziiHNQBmgG 2gaHB+YUCjiPPN6D3c1I+bu+jnpCnsiTUfs+hip1Aw/paR8d14Iu6io4t0ZF+kv4eABU 6/y0igV5GHle8A8kvO7L3BakfU6tLkcJWn0QQERW6nESHgB2/CL6a+pEOzkngg2m+SAk pIGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BVIws1M4wjq3yv5C0HRVSWm08wZYWn34AD7twXGrqQ4=; fh=8NRc0+ZQvrnEAldONmAidcbziOgvhvpGenwquaN9QmE=; b=o/7UDcN/taiAqxaJwsrQwSUP6ZUxW5EcVmMMrAgi7lZEaRvDGIx3B/GC3nuG+AhpZg N4BWxHEtuGdSN4iI2nvI3RUPTYRkK0BHY3fMmfY6H3uzCA4rozgxNNehfQ8Bpmxk3i9Q pdh6U8m43+nfV5GLMedifgFLBo3gfaABrW8n7iFfqkG/TUiseCD+/SRkNLlrC3gnAZjt fI4T7EVRsjpReEDGFLyItHyB8WySNRcIydyJFhP2jgknKkT8/CIDuXL4u6WXYcgwPYt/ EeSvpPftCwI2yJrBZTsSFvwlcHk1PDkoiwVrO8iYFO+wEyrsLDUDzDi8XBoVnO3Rdq8y nGlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=azu1fJ5A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020a056a0021d600b00676fd3ad23dsi3389497pfj.384.2023.07.21.10.11.22; Fri, 21 Jul 2023 10:11:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=azu1fJ5A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229819AbjGUQtm (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Fri, 21 Jul 2023 12:49:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbjGUQtl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Jul 2023 12:49:41 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80DB81FCB; Fri, 21 Jul 2023 09:49:39 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36LCtWmB015885; Fri, 21 Jul 2023 16:49:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=BVIws1M4wjq3yv5C0HRVSWm08wZYWn34AD7twXGrqQ4=; b=azu1fJ5ATvfEB8vew6lTi+zC751LVjNF7fFsGfH7R6LqrvPkgjAUVP16FJjG8MSw6wdr M3eyJWkm45NZsB7epk0+XoVe3cBEqBYy4PVUQhUJ5H7fen2w7+ICfeWSRHc/p3b4/yVf lIk+pOVOeGg6Se+o4gTM3Hj5gF0yWVgElp5CaB85ht9HhhbOodV76KYuh7n2W0xLSRzy F4IOzFP1fsdG48gZw/zm1KCN3VUs4dTQb3iRsFwv8RDt9Nk803rxcr0KKh3IiAis4LFg k3O6Hxif0EdVuk2JTZRkPqJij0IhPDuTzySAx/IGu9GLyma+zd9qVjThcIBNwf7umW/e gA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ryhdy9npd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jul 2023 16:49:24 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36LGn7Ab015423 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jul 2023 16:49:07 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Fri, 21 Jul 2023 09:49:06 -0700 From: Bjorn Andersson <quic_bjorande@quicinc.com> To: Vinod Koul <vkoul@kernel.org>, Bard Liao <yung-chuan.liao@linux.intel.com>, Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>, Sanyog Kale <sanyog.r.kale@intel.com> CC: <linux-arm-msm@vger.kernel.org>, <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH] soundwire: qcom: Log clk_get("iface") failures Date: Fri, 21 Jul 2023 09:49:01 -0700 Message-ID: <20230721164901.2155287-1-quic_bjorande@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 6ssB93ZsqB_symMR3J0sKHmRyvan4IYg X-Proofpoint-ORIG-GUID: 6ssB93ZsqB_symMR3J0sKHmRyvan4IYg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-21_10,2023-07-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 spamscore=0 malwarescore=0 clxscore=1011 priorityscore=1501 adultscore=0 mlxlogscore=999 impostorscore=0 phishscore=0 lowpriorityscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307210147 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772050968638231495 X-GMAIL-MSGID: 1772050968638231495 |
Series |
soundwire: qcom: Log clk_get("iface") failures
|
|
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
On Fri, Jul 21, 2023 at 09:49:01AM -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. > > Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Reviewed-by: Andrew Halaney <ahalaney@redhat.com> > --- > drivers/soundwire/qcom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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; > } > > -- > 2.25.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 --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; }