Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp198557rwo; Fri, 21 Jul 2023 10:25:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGCRXzIarPWN/E2RIn0sozPj9gKs5nX92lmZg7OT714QHn7UOmab2cgUIofIWudEbmGBvqf X-Received: by 2002:a05:6808:30a2:b0:3a3:f45b:aa48 with SMTP id bl34-20020a05680830a200b003a3f45baa48mr3298851oib.6.1689960333896; Fri, 21 Jul 2023 10:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689960333; cv=none; d=google.com; s=arc-20160816; b=IB7iFKOoYHPqAvKsQINp6+56IFQ2OvEPa8ByUDev8YkqnXGBvnHCOI/FNMQDSFNhmI UVxCjUBN8IJJDag95cqtVplNRfheJp1UurrY1KIyhYhyoXJIkMZP1Za4PPei+KgilBtH sGJmsICm5em2dI43LY/C7gnu5xyAtfuMcLtDUnxmJeAg1pdmXC2MynhkGmDdSCMNPG8f iDzpnYxHdTf0K8UByMUxtl7uqCqRuxElkF2gNscNJOquGWVhE/gDjAl+H7s53Tw7CoKi OU+m4ehCmlxiTHsx1OmcyQYJp/bns0dNOzH3Ds2mONCTFN1vsaMr9VmRIzNmpizt68f5 wOlA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a630c11000000b005347c4d09ddsi3219920pgl.678.2023.07.21.10.25.20; Fri, 21 Jul 2023 10:25:33 -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 S229782AbjGUQtm (ORCPT + 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 ); 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 To: Vinod Koul , Bard Liao , Pierre-Louis Bossart , Sanyog Kale CC: , , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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