From patchwork Sat Oct 29 14:16:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12721 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1371032wru; Sat, 29 Oct 2022 07:19:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7w0dDOEcgmNz6BDtevzOAKBIqgnO+6WAMw7v8TO+8quOPmo9yhHo3galbPF002UPOAOA42 X-Received: by 2002:a62:6544:0:b0:561:7446:fdf4 with SMTP id z65-20020a626544000000b005617446fdf4mr4951524pfb.41.1667053187377; Sat, 29 Oct 2022 07:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667053187; cv=none; d=google.com; s=arc-20160816; b=a4RxjY/yrflf9ck9bzFTWF9goKpX9+2pYlLFqUhnlG0PFwpD7MDH13xINe+iHMXhBU K0bjUBAjz1ArnbS4C+V3qB/VvaVUbgMDD0JCRFFEwP11ifSi7Nat+YrsfJrSsqJamR3E ouVSVPoWqWJSEfC6aU5b9QRhG+uqyQa6Bwf0tLVdPZfqp8//PNQM+b43U/FN7OUw+AOU lI49v0qzwlXsuVo4gbNZtn02+PS33o+aUbzHBjgSKJ3yF7EIkuMd04bIrWEPK6i/Ijeg sPpkv0f8p/FY71OPICDknXSGSt3SYSiNOKU5Q0JiIyUbglkwfNuSr1kUoDXSVTIw66TC dzVQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dgO0itPmS4SJd2mGNhvjlL5RdA1WKEDpldIzySFpulk=; b=pHIAba76Q4gdmpgeguv9XsjrE9oT7+Mw5VQWIUt7AbClPssQ2PgrfVU8zY0MmDcCoM UUwCm1cRlE6mW669fHsoqVK4ZkuXGpb2Sb5weHjgwFrKwXgHLEceiXFuirtxIvArUQWd xUYGNw64iiVxnIkqG035lrwZXzsK2EvndiHzdfAIsrMccMh5/uTynMRutC2yyh+qqfsH ZulhwqpbyAGNnAGQATVdXjuaGiWwB3z3WlSVUh8aPeYNRMHe0fqGiuuBbQNcn4tqaqwk 4tr50K2TfgUR7ObulYBK1mAI4MibwgddU7fxEKxlX9IRs0o5sATYePsmqA1SagQfFGTp xaSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MJjVSK83; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oa10-20020a17090b1bca00b00213c2f26cb5si153587pjb.126.2022.10.29.07.19.34; Sat, 29 Oct 2022 07:19:47 -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=@linaro.org header.s=google header.b=MJjVSK83; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbiJ2OTD (ORCPT + 99 others); Sat, 29 Oct 2022 10:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbiJ2OSP (ORCPT ); Sat, 29 Oct 2022 10:18:15 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD4D6069C for ; Sat, 29 Oct 2022 07:17:43 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id m6so7139473pfb.0 for ; Sat, 29 Oct 2022 07:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dgO0itPmS4SJd2mGNhvjlL5RdA1WKEDpldIzySFpulk=; b=MJjVSK83iQnWC3FbZ0ZRDQChEUVe7Bjq+6ETKYFya+P5BVO2U5HlxLoIznDcVbYRCE 052c0Gg+Z8F1NLlmjjJ/EML2o3rf50w54gItVnczSvye8+/4hXacL7W3YQwsc7G+q/TH 5b6VhYKuwG4PA6NQP+H6Q1HlxA0GA6NYcHI5MwhU/UtQo3jeuyn2UBD0AV+qJzNNea+W At3h3PJBxBk9Y8S1ITDbrlUA9KWQ8NsD8wadvohht4FIxeaMOATOCTcxltotD8HrGFBV mGcX6YeYnsD8U3F2mRb5Ft+/XdH40QE5aMI4Fd19w2oQFYiGj8QlRBKch/rBWP26ljRu vvxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dgO0itPmS4SJd2mGNhvjlL5RdA1WKEDpldIzySFpulk=; b=RVPhZM2P+g8Tk5DA4MY0XIT5mAUAfifef5bG3/op5pQSMuE6y50GDT+7pMbqnKNKKg g73b9nAu0s1khBlIfC8Ct8yJj0BSXFwcrd/gnSkCcWChzXPl1QdumORlZVVR3aJi99gV MewOWykUV7yKVFo9oymqLiUXC/Q3agv+wi3Nl811kwi57fsvuGDXbFVT2oWn3kkibGn/ XOfb0A1V0IxU3KqfZ+pZc5IO0+5L4YzrIXMf8HBq/zMIgblOIdrKPPjtJhP8GnG2vX4r Fd/kSpVFpxB4TTHe6GkLizEO2k6LOmiq2dot9ybabA7C4uPWzPAqBxi4JKc+WMm1d+X1 TwNg== X-Gm-Message-State: ACrzQf3AigGJOsSpMRfGLoX07uY9EFsjn8fz60GjTk+DE6QWxk7LUF6v +O6nywSBM/cixCSd8+rvKK7g X-Received: by 2002:a63:d60e:0:b0:46f:8979:30ba with SMTP id q14-20020a63d60e000000b0046f897930bamr1913693pgg.332.1667053062610; Sat, 29 Oct 2022 07:17:42 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.18]) by smtp.gmail.com with ESMTPSA id u4-20020a170902e5c400b001866049ddb1sm1370157plf.161.2022.10.29.07.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Oct 2022 07:17:40 -0700 (PDT) From: Manivannan Sadhasivam To: martin.petersen@oracle.com, jejb@linux.ibm.com, andersson@kernel.org, vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, quic_cang@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH 11/15] scsi: ufs: ufs-qcom: Use dev_err_probe() for printing probe error Date: Sat, 29 Oct 2022 19:46:29 +0530 Message-Id: <20221029141633.295650-12-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029141633.295650-1-manivannan.sadhasivam@linaro.org> References: <20221029141633.295650-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748031963025135620?= X-GMAIL-MSGID: =?utf-8?q?1748031963025135620?= Make use of dev_err_probe() for printing the probe error. Signed-off-by: Manivannan Sadhasivam --- drivers/ufs/host/ufs-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 8bb0f4415f1a..28ac5f0ab2bc 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -1441,7 +1441,7 @@ static int ufs_qcom_probe(struct platform_device *pdev) /* Perform generic probe */ err = ufshcd_pltfrm_init(pdev, &ufs_hba_qcom_vops); if (err) - dev_err(dev, "ufshcd_pltfrm_init() failed %d\n", err); + dev_err_probe(dev, err, "ufshcd_pltfrm_init() failed\n"); return err; }