Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1164759rdb; Wed, 6 Dec 2023 10:13:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWowarp+9k2htW535uDYBj1e4Fl19IihK2Y/Cpw8BRYkhbapoqHxZ6PJD94nzDtwYG81CX X-Received: by 2002:a05:6a20:1587:b0:18f:97c:9281 with SMTP id h7-20020a056a20158700b0018f097c9281mr1246425pzj.102.1701886392779; Wed, 06 Dec 2023 10:13:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701886392; cv=none; d=google.com; s=arc-20160816; b=POSLbqyKTtgMhYQKvvDhi64/vXUgW6rHUvyxfMb5uDS4StY7bRxmm2lPIVInvLGoUA yqr3wZsU3GdxoRUNlQNoQsiVlV9SAAkDgRlVDtlbzYPo9HLhEZCLNTBbjSb1uPkSkA+V iKDFeTN8iY1O4E2pIUfiTTYXuzwyxVRx0QtMYK4rSg/Z5g3FUmfqnNiTCZeIVtDIVd61 ancBu5sTKwlsTNPs4b/183aaoJhsjfLYIJaFMRDSB3urz/o0AS7iuou3C6DbhyiIp7c7 1QXRjSv8yEGFn/ZNVoxwrSC+ieLV/ovhE4EensBqtsCwYPWqJwGbcGNDASkTJQqSnih0 BVzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8GLvrKoKXfs9q6sXMVVNDve2BGCY9TgxYq7d8xwgVO8=; fh=rb5sR2rQa902X84yik1TqLU5qpRkQt89dLyRG+6e3gw=; b=NT00QeG/eSXXcvONrnj9jX/s7YMinGFfXnjiRUQOSZPso/i2JkGLze85077Cmxs/pB Dnn8YbwTbgmivOsnSh/ScC23YiZNj6RD/PdYJrHEnx7Yf8r+NBCDA073cOHdJk/CSc+1 j+jrLzKdXB/NtrOE9YUoCyXQYnuX3UB1sbFlSWVfx44KV1hus2BFJDBqg1bhV0qry8fa aGrTknKbXny4TZYzbC+O8Bhu9oJ6UScPAESQpaQya1MIdJYuBl2GcpTiAfONWPNM6Dru YyCmNp0FseymsaGoKddxaW5cg9yyJWLWeqgX1WWZqiF+4cW0sqc4N6snnVxoJ8HmdAJ4 sjSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YMFD5fUI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b21-20020a056a000cd500b006cb65cfde7fsi323854pfv.91.2023.12.06.10.13.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 10:13:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YMFD5fUI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 09BF98028BB6; Wed, 6 Dec 2023 10:13:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378992AbjLFSMi (ORCPT + 99 others); Wed, 6 Dec 2023 13:12:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbjLFSMi (ORCPT ); Wed, 6 Dec 2023 13:12:38 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FFDF122 for ; Wed, 6 Dec 2023 10:12:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701886363; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8GLvrKoKXfs9q6sXMVVNDve2BGCY9TgxYq7d8xwgVO8=; b=YMFD5fUIL70SpZgvY1dFD1TPG6eyvKrP0VBn/vl+Tr/nLuB+7NlAq7KtObFkkVbS2NDoTM kblZHrMmw52vThclyOHNZ6kTZoEhFehRXBkzP3+2ho2H0Ao90IcGJq0nlLpHJ/IpqPBMHs gVIeGX4KUaGHIiIsdsI+0FFRwJqI5u8= Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-553-_8hFoYPSNEuWgiDwTZoYSQ-1; Wed, 06 Dec 2023 13:11:11 -0500 X-MC-Unique: _8hFoYPSNEuWgiDwTZoYSQ-1 Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3b8b8d6f94cso155199b6e.1 for ; Wed, 06 Dec 2023 10:11:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701886270; x=1702491070; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8GLvrKoKXfs9q6sXMVVNDve2BGCY9TgxYq7d8xwgVO8=; b=XjgigE9K+s7ckVr+2jgr542mcZ5UdjiR1CLILr7SsxmHkReatsO5eIgDRlShU0k8bD gJ+HmsTQGPQXzC267IqPwjJfaRwsKFPffo2qyJ3e6ptVMjpN+T6u88BeByznbBcSCS+3 24eOA6lhm2bU2Yec3xum7zJgTTST9QuF8E98zqS6VFiJAMlitQiLwq133oRM8xEZcX3h 3OmSgZ1jDlybfx9WFl4A0ZDUt+zG5E9nQy1nDbewi6chyEz0o6Ib/UBBrYY7JP1hPuJP pTQcLhRkVEZhs4HMu7VhOLLBqJkw3SjpCBGOkWl9xA7JBTvJV/WFrk04BySV6jUqrAEw tOHw== X-Gm-Message-State: AOJu0Yy4HaApwjJPsXpIxJ+yc/qlYf6JaIMsJ+6hiu3JIBp4nf5IL7VD 5LG3VaYMHfDrUyjXuzTZSChWtG1VHJBlFnuq10qY97//CElwAB9cYg72bHM+bH4dLOjf2FPCTSa 7YmMkVSgZCYlC7i+SBRqSevdc X-Received: by 2002:a05:6808:a98:b0:3b8:b063:9b4f with SMTP id q24-20020a0568080a9800b003b8b0639b4fmr1237609oij.65.1701886270651; Wed, 06 Dec 2023 10:11:10 -0800 (PST) X-Received: by 2002:a05:6808:a98:b0:3b8:b063:9b4f with SMTP id q24-20020a0568080a9800b003b8b0639b4fmr1237600oij.65.1701886270419; Wed, 06 Dec 2023 10:11:10 -0800 (PST) Received: from fedora ([2600:1700:1ff0:d0e0::47]) by smtp.gmail.com with ESMTPSA id p21-20020ac84095000000b004255a974865sm141189qtl.18.2023.12.06.10.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 10:11:10 -0800 (PST) Date: Wed, 6 Dec 2023 12:11:08 -0600 From: Andrew Halaney To: Manivannan Sadhasivam Cc: martin.petersen@oracle.com, jejb@linux.ibm.com, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, quic_cang@quicinc.com Subject: Re: [PATCH 03/13] scsi: ufs: qcom: Fix the return value when platform_get_resource_byname() fails Message-ID: References: <20231201151417.65500-1-manivannan.sadhasivam@linaro.org> <20231201151417.65500-4-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201151417.65500-4-manivannan.sadhasivam@linaro.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 10:13:10 -0800 (PST) On Fri, Dec 01, 2023 at 08:44:07PM +0530, Manivannan Sadhasivam wrote: > The return value should be -ENODEV indicating that the resource is not > provided in DT, not -ENOMEM. Fix it! > > Fixes: c263b4ef737e ("scsi: ufs: core: mcq: Configure resource regions") > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Andrew Halaney > --- > 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 852179e456f2..778df0a9c65e 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -1701,7 +1701,7 @@ static int ufs_qcom_mcq_config_resource(struct ufs_hba *hba) > if (!res->resource) { > dev_info(hba->dev, "Resource %s not provided\n", res->name); > if (i == RES_UFS) > - return -ENOMEM; > + return -ENODEV; > continue; > } else if (i == RES_UFS) { > res_mem = res->resource; > -- > 2.25.1 > >