Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1106237rdb; Fri, 1 Dec 2023 07:15:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyxbNzJN0KXcrFDvHTSe/H/a12MIyMkIUGxKz0e++f6B0G6s8wF/nemW8cUQkgFlSdSvSA X-Received: by 2002:a05:6a20:160b:b0:18c:1af0:ad56 with SMTP id l11-20020a056a20160b00b0018c1af0ad56mr25213640pzj.8.1701443712225; Fri, 01 Dec 2023 07:15:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701443712; cv=none; d=google.com; s=arc-20160816; b=HKmdUCTxBrWeFk3sPp9NdyLL3kCMj3dH9ZiVXH4nJ7xK3BOTlTIN46UELGWu8J7ZVi lLUMA/hRCPVU3d2zwOmlR85CVF9mAh5X3G2amu4ZnNUFzjdUP6hLjPfiCpMnltxR84ib TsSifZZS0Zgioy6pHE8UnGekZYWgC2ZCuOT/qgiyEPj96Fr2818zuhSPJ8tAGrx8xa1f nMT8nl2UPpVbniweg5uPjnKb/d8uxcWC/L0g/hb42wwDQBty9P39X3gPEAtgG77iOeaJ dDZjEaSSbSGf4Xf1I+fLDmkHRX5yRUEqzERIo2Lq6XVKxkmTCmn7W6v4FKHMpmRjSbHN mk1A== 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=f3kfHr+zbu/uneZ4lD4JhbFPgELgLtJ8NZ2za38JuAE=; fh=O5Q8LUawuCtrJk5mJG0Sz+mqyfwsmdVT26FvWpOyqg0=; b=vcToUXbBSdK8EGHCHaZOgNSL+zn1pibf41rodmVdAQQhgn3CcB69e6LYidZZhXKhPC CiW/MZgeVUYG02RlCtYFe3FQF5hMzBirKNnCbOaArPl0xDbvx22W8oHEPCR9uacNadp0 9rz63lXD8dg5aoqk60XWwWoKWv+yRh9ijC/+/jdsyOmDKRZaoo58i8F+cirIP0l5/CG8 WQGiUiRhBLzYLsPBztkUDvwbTjRl1Be3jVP1FEYr1AoyZH+vefsMGKbXtiBhKNGjZWtQ vS7VBwnoDTSdUacthwqydVLDsQInKFFtcH0HgRLoc53XriwlMejJLSb8ciOnkRf8YWpy ybiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HM4mQeTz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h63-20020a638342000000b005c27cb9d82fsi3499373pge.655.2023.12.01.07.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 07:15:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HM4mQeTz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 13BF88184A8C; Fri, 1 Dec 2023 07:14:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379374AbjLAPOj (ORCPT + 99 others); Fri, 1 Dec 2023 10:14:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379368AbjLAPOg (ORCPT ); Fri, 1 Dec 2023 10:14:36 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1D7710D8 for ; Fri, 1 Dec 2023 07:14:38 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1d03bcf27e9so5492375ad.0 for ; Fri, 01 Dec 2023 07:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701443678; x=1702048478; darn=vger.kernel.org; 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=f3kfHr+zbu/uneZ4lD4JhbFPgELgLtJ8NZ2za38JuAE=; b=HM4mQeTztByqk/kg5XN28mV8G7VAhhkric9HJh6Dyv0nETOl5yw6qJA8bj2rRWZYyQ BehEv8BjjJX90L8tGlHmUO9kIfveNPevPzuGkSCMTAb8sLktkJA1mfv4NattT/F+YCec iPL8fWZO/nZ0XdGtBtrJDV2xfJ1C8iX+2krU82IIu01NcVNa8O5CG0HBLhbbtMa2ECVl GrAqzw0UniZ3LhkN5rdKsvncsbI1tVbI1C70ALTMVXDp3V6sYy/VYxBC5dbrj4FKaSAY 7Z9AHPwNTIpVQ9oAPZwwOeD/TvGInAGY/kgWtPKA12jm3LHrksUYAVSQFLc9GItHzDQH 6yqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701443678; x=1702048478; 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=f3kfHr+zbu/uneZ4lD4JhbFPgELgLtJ8NZ2za38JuAE=; b=OPXJyjZWuT9DO6wIMYGBfGNu8Y5rwVllCGtSMiofgzRfS78Nx+V+jOrR75PLzlu3SD JhC9hvaPwC3TczuZaCjMforjrGnZOfSrcMQnQPF2Kavo520bnlEP0/r+pf5lnCosDSIh Zs/mFpTJdF3UI6E71/oXLVO1E7h2ghWCtw6IyXWomxgnmgynpdiJm20koOuOioadK2oS BIYl3VY9nADn4IsA+5UcPvBZXXDcu7GbZBaxzBOjMDr+9Ofso5ije2Y50VHxClpxBNJ8 FK+zQV4KK0TjMEmWLbFZgkZxifwWXG20vI/q2akJM/56GXl7Boe0iIovCroq13QTvtAt v9Og== X-Gm-Message-State: AOJu0YyJ5Pe+KVb4Y1vfmVwpolLX9WdO/MF4OYrrR54c21HhotzhKKy9 vH0K5fSy9ymkV6Js2IqfVbFL X-Received: by 2002:a17:902:d4cd:b0:1cf:e113:7932 with SMTP id o13-20020a170902d4cd00b001cfe1137932mr15787296plg.17.1701443678293; Fri, 01 Dec 2023 07:14:38 -0800 (PST) Received: from localhost.localdomain ([117.213.98.226]) by smtp.gmail.com with ESMTPSA id s14-20020a65644e000000b00578afd8e012sm2765824pgv.92.2023.12.01.07.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 07:14:37 -0800 (PST) From: Manivannan Sadhasivam To: martin.petersen@oracle.com, jejb@linux.ibm.com Cc: 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, Manivannan Sadhasivam Subject: [PATCH 03/13] scsi: ufs: qcom: Fix the return value when platform_get_resource_byname() fails Date: Fri, 1 Dec 2023 20:44:07 +0530 Message-Id: <20231201151417.65500-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231201151417.65500-1-manivannan.sadhasivam@linaro.org> References: <20231201151417.65500-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 01 Dec 2023 07:14:57 -0800 (PST) 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 --- 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