Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp968952rwi; Mon, 31 Oct 2022 09:35:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6hT2h3veOcTxNUVZUAsovmfizuPySMS8JAK9V8Wh2YA7LrsPbgw5sFJJuSsgFG5MKNDsY6 X-Received: by 2002:a17:906:2681:b0:783:6a92:4c38 with SMTP id t1-20020a170906268100b007836a924c38mr13811343ejc.75.1667234149056; Mon, 31 Oct 2022 09:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667234149; cv=none; d=google.com; s=arc-20160816; b=Crx4uQuoNjbRSFx/Jg/0F0/quuhSkhkouOaStPSf6o4OSMGqxxGZHEacph/t/vPomc iGyRXlR6sq631Ji+ogEgTCtFmZIoGd2JH5QwSUt2l3QBe4HG5I7WFmnYyFF7LJXedikZ Qu6Mme/ygLDYbuChR3g8xxD8wGMRj0pdAsN+UcjE02KI4o/hPhPboqDBJbHFqlInk9Gp qoBm32vd1fHv4hTw4mEN0OfZsUMMxshfGMFGQXonQGQA3Froo/KlHxkk2OyzHXPRc6WV RQwj3zrZ2EpzJdEpO/UEKC6SoS1c6dKbejrrMjAmLy8C9s5M/K51lJbKyTyINvD9SJ7j +d1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:wdcironportexception:ironport-sdr:ironport-sdr :dkim-signature; bh=xtFGr2gIICRFF+Vnmk4qArdc3EE/8dVWcaLTbEt+VVI=; b=sqitYesnCm1Hlj1v2SLxUov5HeZQ8ctLKeC1vqnSWTe5Z3mREaeQ+LEF0TRJoLbGQs 1IWUq/Tlm8BGTakM1GYeL7gxM93BujplEqc4dkrp0jhcwDi/hHQengAbpGQtimySzL3N 5yw1gzm/eegOp0NSf7p7zjGsmRmXHrcwILl4vki3nIrbL4KIDwQOtD2gfJDxxiw/+AzI dG/D3cLDMo5jcL4KCum31E5ciyZ0qzElBoSQ4kj61HqrD8caZrvucN0P2VGCC/BbI2Ew fVam7gVDx3q3I1Bze+yVUH3OcchnZ60EkKM7FYQIN99GWgVxrY8IDOulc5AWUm4ADsut Zchg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=PMZ+rghl; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv10-20020a17090760ca00b0078cbe9d08c6si10743956ejc.197.2022.10.31.09.35.22; Mon, 31 Oct 2022 09:35:49 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=PMZ+rghl; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231698AbiJaQ0L (ORCPT + 98 others); Mon, 31 Oct 2022 12:26:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231666AbiJaQ0D (ORCPT ); Mon, 31 Oct 2022 12:26:03 -0400 Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D65FD1276B; Mon, 31 Oct 2022 09:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1667233562; x=1698769562; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=tcPZBpWAoPb3fJeuZ0FofoSwD+Q2agXunSV1QbOjiq0=; b=PMZ+rghl0cNOpjfRbB/EHFxT9FsSETEdiueMcm8ypvKIM3UKlMWPA6hO 8UooUE1+wFaqBzryMKdxDcpIVxw/jgKA4Jbc2p98+8hrEES60g2VZSD3t aNwhxZdmbvtqqDUGgBmtPF1Os5MyooCC43RTzuX6YBmbwKhTk+6dT2Pcb zHIQAfEpDVzBgWCxFVO7j43hUAPA80fBY9bHQVrJBPiS5oC/tzOaEJsUp JX27GcLcLwy6zCDKouU23/B9bQwr2QK6J9xQDlbcJ2vvfRS0ATxdpo/8+ onFtDlUQ7oc69NhEymMw8+cvgia+m6Vnx23JZGQpmO44Po/fT2oSwzBwm A==; X-IronPort-AV: E=Sophos;i="5.95,228,1661788800"; d="scan'208";a="215498921" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 01 Nov 2022 00:26:02 +0800 IronPort-SDR: TBXdjP0WM5mXHs9DFZaDwUQjGuflEsM33iAam/9OYI2QpUCKGAznddviDYDwPDNTyRXveXMvQA Bvnt/GZ4vy8CwkV0UuEvrSu+xYpyK2ollFWDGZU0gGT6foqkXSzVTuklSrFDV3LjGjKbMViVzq xkcL1YitZxooTCEJM9+Pa9ttZFj/hPoswBITSBhOuhdpf7jC4DAxUhf1n7lgS8xjHWgGbYJAiw EDQagRvnS9Vb1rxmNrOjS7ds22KeXJqMmwPIlmPrlrZwX4iWccqe/LvjoQGb96/23NA0sNhWpz jBc0f9o9VHGp3dKHEKtK9OER Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 31 Oct 2022 08:39:34 -0700 IronPort-SDR: 0zaRbmorWNHzQsm8Dl9wwwb9ecVUtMNPO4Pd7F6nZsa3ilzX7PB4qlDaQrG/9v+PK33Cia/ALT Z8kLWlu/pqZdAS2QbgYMkAIcx1Obj1/EWrt9pzE0P2bdPecqJdgZy1NaViKsUT/Ap66kK4dNmT 2FRUwJ/Ibn8Z1tTkM5nQJv/qbZnrsaoaKFZk9+fLRdn6ynLGGUhpNLQ4A6Hkkqg8DQHaORjqEV /31Y1uNdji1kTUrsHhT5DQ9QBFuOj/Wqk1vxstbUHSkugqSbtBhWxoiE9LIqmtEX7j79o8QIVm wJs= WDCIronportException: Internal Received: from ilb001078.ad.shared (HELO ilb001078.sdcorp.global.sandisk.com) ([10.45.31.219]) by uls-op-cesaip02.wdc.com with ESMTP; 31 Oct 2022 09:26:00 -0700 From: Arthur Simchaev To: martin.petersen@oracle.com Cc: avri.altman@wdc.com, Avi.Shchislowski@wdc.com, beanhuo@micron.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Arthur Simchaev Subject: [PATCH 3/4] ufs: core: Remove len parameter from ufshcd_set_active_icc_lvl Date: Mon, 31 Oct 2022 18:25:23 +0200 Message-Id: <1667233524-13715-4-git-send-email-Arthur.Simchaev@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1667233524-13715-1-git-send-email-Arthur.Simchaev@wdc.com> References: <1667233524-13715-1-git-send-email-Arthur.Simchaev@wdc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE 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 len argument is not used anymore in ufshcd_set_active_icc_lvl function. Signed-off-by: Arthur Simchaev --- drivers/ufs/core/ufshcd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index aa46292..9cc3abd 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -7386,7 +7386,7 @@ static u32 ufshcd_get_max_icc_level(int sup_curr_uA, u32 start_scan, * Returns calculated ICC level */ static u32 ufshcd_find_max_sup_active_icc_level(struct ufs_hba *hba, - const u8 *desc_buf, int len) + const u8 *desc_buf) { u32 icc_level = 0; @@ -7444,8 +7444,7 @@ static void ufshcd_set_active_icc_lvl(struct ufs_hba *hba) goto out; } - icc_level = ufshcd_find_max_sup_active_icc_level(hba, desc_buf, - QUERY_DESC_MAX_SIZE); + icc_level = ufshcd_find_max_sup_active_icc_level(hba, desc_buf); dev_dbg(hba->dev, "%s: setting icc_level 0x%x", __func__, icc_level); ret = ufshcd_query_attr_retry(hba, UPIU_QUERY_OPCODE_WRITE_ATTR, -- 2.7.4