Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp380222rwl; Wed, 9 Aug 2023 16:25:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKwbC2E4Cr40dlU/ff2zQeDzpPOTSQLmxCptv0LhyH6wXoNeUAH58Q4cDOywaRRDG7qnRJ X-Received: by 2002:a17:907:2c41:b0:99c:f966:9e9d with SMTP id hf1-20020a1709072c4100b0099cf9669e9dmr400154ejc.10.1691623521577; Wed, 09 Aug 2023 16:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691623521; cv=none; d=google.com; s=arc-20160816; b=r4esuPDu4eorS/+axHLv6FYrzO85YWJgVmQWeaDOypiR+4qVlAKiJcGlZy7j8cq5tJ ylNQZBQ3crh4knSsT5eXvuK4w/lrab+iwdEAuD+Brc/tu16mtQsNPUAbS/43rucHYncZ dK4w1H3drONJ6zpue99FWZL5Vln4mdH8lC8flIYVJkCddGrd3M/x/0PM96Svk0RrQajh G1rNDzprTgClaZ8+AaK+WNkNHfr2/NrxlR5VgDA6gObL3mpDLGbBbpW8pb7fRb84m+jE e8a20QMYPbjiQHqOM8vAtusdrQizErUdgnZz1fUiGoI8LY7Ln6WZbL2B612sXC1vQHzj hlDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jQlTOVhoAlsUv+sIX6BAvnsZfsGmAq6GCgb5EX7v4F4=; fh=+hDtp5Jr6dxNz2ryp4DPXeTjJ57x2H2ashKykV+ynoE=; b=a+wFnjb427wX5owWRzvJK/807GI4uP54tMtlX1fyKLwzHC5z6/SjNsGIc4YvVQbmc3 2+H1i3ADBnorXNyI8VKR1Z94LWTpouU5c4+8qqp5M6/RHFv5xxwHjzqZaiS5JtMlwYa6 EYw/5BrOnVISOZ1fRaiXrVkky+sIq/b3ITgb4SW1Giv8naJmg3+Bk9c5b7ZqPJZaRAl4 vBS55Gpx0RqAuHRX7xGm3Ouu6WxTtKOLYEUQvmLQ5Kj5rp8Evh0z96qeG1Q+mRMK2eG9 bvdorAkQ2USX93dZdVPxFJ88W6dib5DcpPs/OfYGYfNmezVVaHWTGDQ86vSmzVdKeESN aRTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mwIMturx; 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 q1-20020a170906940100b0098eb8b70f32si253372ejx.213.2023.08.09.16.24.57; Wed, 09 Aug 2023 16:25:21 -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=mwIMturx; 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 S231661AbjHIWML (ORCPT + 99 others); Wed, 9 Aug 2023 18:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231518AbjHIWL5 (ORCPT ); Wed, 9 Aug 2023 18:11:57 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B043FE; Wed, 9 Aug 2023 15:11:56 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 379LGPEQ007338; Wed, 9 Aug 2023 22:11:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=jQlTOVhoAlsUv+sIX6BAvnsZfsGmAq6GCgb5EX7v4F4=; b=mwIMturxGsxRj4yzorpj9fU3Rzl5jDdCE3BZ9ThzpsyRZO2iW9uLLip9favkbqLUF63N ecRVgk2g86p19wHRvEIpZGSuejeVTdtKkwp5dkpDBvh5DHas9/REMMf5NS9aXhqxA998 rYtERRMB3SYNfRFSoDoN9j479uxRX5414Cp7+zzaSGoVvl41kwpJyPoYVwqAn24QSo3+ fEoGV3xexXa7K8PYklGU9Vama2cTUhKLbxCVPLIugoWo2nJhWUwXrqMPY3YtnL5KQF8e FbmN48RmTcUAdy0SsjpueBYJn5OsReWX/tjqy4EQQPPH2F5gskPDNY6fqvLLFJ3/+xOn DQ== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3scbcgh1nk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Aug 2023 22:11:43 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 379MBghS027580 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 9 Aug 2023 22:11:42 GMT Received: from [192.168.143.77] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 9 Aug 2023 15:11:40 -0700 Message-ID: Date: Wed, 9 Aug 2023 15:11:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 2/2] scsi: ufs: host: convert to dev_err_probe() in pltfrm_init Content-Language: en-US To: Brian Masney , , CC: , , , , , References: <20230809191054.2197963-1-bmasney@redhat.com> <20230809191054.2197963-3-bmasney@redhat.com> From: "Bao D. Nguyen" In-Reply-To: <20230809191054.2197963-3-bmasney@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: HDN95-r0SIug4zXLL5k4nx_ukD_1YRXv X-Proofpoint-ORIG-GUID: HDN95-r0SIug4zXLL5k4nx_ukD_1YRXv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-09_19,2023-08-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 adultscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 clxscore=1011 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308090191 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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 On 8/9/2023 12:10 PM, Brian Masney wrote: > Convert ufshcd_pltfrm_init() over to use dev_err_probe() to avoid > the following log message on bootup due to an -EPROBE_DEFER return > code: > > ufshcd-qcom 1d84000.ufs: Initialization failed > > Signed-off-by: Brian Masney > --- > No changes since v1 > > drivers/ufs/host/ufshcd-pltfrm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ufs/host/ufshcd-pltfrm.c b/drivers/ufs/host/ufshcd-pltfrm.c > index 0b7430033047..f2c50b78efbf 100644 > --- a/drivers/ufs/host/ufshcd-pltfrm.c > +++ b/drivers/ufs/host/ufshcd-pltfrm.c > @@ -373,7 +373,7 @@ int ufshcd_pltfrm_init(struct platform_device *pdev, > > err = ufshcd_init(hba, mmio_base, irq); > if (err) { > - dev_err(dev, "Initialization failed\n"); > + dev_err_probe(dev, err, "Initialization failed\n"); Hi Brian, Can you pls add the error code to the print? > goto dealloc_host; > } >