Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3619416rdh; Mon, 27 Nov 2023 21:22:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZjvATsZEPorPeRm1MW4fs329XFGIjFz1nFHA+aWVUsilEtYHic1lNKSa175pWvOAIIRth X-Received: by 2002:a05:6a20:3d1b:b0:18b:556b:6d54 with SMTP id y27-20020a056a203d1b00b0018b556b6d54mr16276237pzi.55.1701148967576; Mon, 27 Nov 2023 21:22:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701148967; cv=none; d=google.com; s=arc-20160816; b=lTNqbOYfkSIg2DqD82+Ucsjqu4oac82R59PgsGYj/CQPpm1epg1Ly+FFkFnMXazjUA bGfOtrDS8B8kWiUQufT/c62e6cJVQzVedafwknUHGIo2hvQucwK4KSSF1squ6FzLSwZ0 Z+9X3u1wsAHGZsh/TgwRluNuI0mrf5RSF7Jz9ifOCUF0FUXBP4+lHJEgOnuSv3DhPMJ7 Dmkv6nv+M8U1ovv7eUZ70z0iAq9DK0x7PVzEHn/ovUUnyo4NQ6ly7qnZaS/7e0VtlAWi m9ZUxPiUh6O7eCP0K1pz0hCYpbzR3b0re1l8ftvrY7n6HmrMiZb2lYufypVWm0835u/B 3SFQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jODsPiTKvp5kRzj2d/yzRaiXYXwnEkz1l8LKUy64O6c=; fh=fKTaOfNpNriLh2ihNxnJUGHaZRsAsozL4WgZvGInEC4=; b=oLbBBDyFniaBoIiEAxzW+Fm2D5UXlgrrCOnYDe7HPbdqhRig+ZwF81ELM5wtQ9raPM +otOvLlhE4ZYmlyYlrfksOFJf3G7VOFIoT+lTx+IVHzn1o3oVNl3VrmZbshatghplYyD EsVcNcQGmN/LnD8H005lJ1px60c3MDoiwsDm9+v9mdC2HcHBSixrqKo8MUQQN3QGXFme I7L/BnIZEkzAMEAtL+17BMavNIOp9tqVgg1NTaERs8LJr2jzk48BxAAj2XNB6xxfB5d0 wZyFLUvJ+pfHeXuGzL12tSIVlCCBkQqvc0W0UKpTGQeZqY3yeIIKWfwoJs9JDhao7uCk X7mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OhxumCsj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l6-20020a170903244600b001cffdccdecdsi309390pls.135.2023.11.27.21.22.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 21:22:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OhxumCsj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 26818807AFC4; Mon, 27 Nov 2023 21:22:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343504AbjK1FWa (ORCPT + 99 others); Tue, 28 Nov 2023 00:22:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232858AbjK1FW3 (ORCPT ); Tue, 28 Nov 2023 00:22:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B38C1AD for ; Mon, 27 Nov 2023 21:22:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C079C433C7; Tue, 28 Nov 2023 05:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701148954; bh=KxefobUNL2PNW0ZyfHGYfAe1r6e3qhe9YnJofc4+Q08=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OhxumCsjYu2zIq/b42MO43CUcAMSBaohcn+WN2bzti1hXTJ7bhedDhS/c9HuOhCRD QQiSl5ZZEgjzm/T81SZ3HXoNsr9F6g5KRaqn0zOv/1MxP8ApCLScyh+3McBQMxSLCV KuieQs3oA2AVQ8VoSn0T6ieUJmLhlwjtyeUeRGWuZ7kY0QmYNBI3NIuyddw/fNpO8c 7RwHML641Mn+TX1r+fVXTPdhZAFSGtDso5axv1Za0KwgrJo+xtXNPUYzD5d9qXCxt7 WdB6GXvA8awOrrOAsBdgHHIh3ISVNeGXScNyDsaMvUqZeacnBr+OrlxYuQaDOzC934 MrJqcaeRyrxfA== Date: Tue, 28 Nov 2023 10:52:21 +0530 From: Manivannan Sadhasivam To: Can Guo Cc: bvanassche@acm.org, adrian.hunter@intel.com, beanhuo@micron.com, avri.altman@wdc.com, junwoo80.lee@samsung.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , open list Subject: Re: [PATCH v5 02/10] scsi: ufs: ufs-qcom: No need to set hs_rate after ufshcd_init_host_param() Message-ID: <20231128052221.GC3088@thinkpad> References: <1700729190-17268-1-git-send-email-quic_cang@quicinc.com> <1700729190-17268-3-git-send-email-quic_cang@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1700729190-17268-3-git-send-email-quic_cang@quicinc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 21:22:45 -0800 (PST) On Thu, Nov 23, 2023 at 12:46:22AM -0800, Can Guo wrote: > In ufs_qcom_pwr_change_notify(), host_params.hs_rate has been set to > PA_HS_MODE_B by ufshcd_init_host_param(), hence remove the duplicated line > of work. Meanwhile, removed the macro UFS_QCOM_LIMIT_HS_RATE as it is only > used here. > > Signed-off-by: Can Guo Reviewed-by: Manivannan Sadhasivam - Mani > --- > drivers/ufs/host/ufs-qcom.c | 1 - > drivers/ufs/host/ufs-qcom.h | 2 -- > 2 files changed, 3 deletions(-) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index aee66a3..cc30ad9 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -909,7 +909,6 @@ static int ufs_qcom_pwr_change_notify(struct ufs_hba *hba, > switch (status) { > case PRE_CHANGE: > ufshcd_init_host_param(&host_params); > - host_params.hs_rate = UFS_QCOM_LIMIT_HS_RATE; > > /* This driver only supports symmetic gear setting i.e., hs_tx_gear == hs_rx_gear */ > host_params.hs_tx_gear = host_params.hs_rx_gear = ufs_qcom_get_hs_gear(hba); > diff --git a/drivers/ufs/host/ufs-qcom.h b/drivers/ufs/host/ufs-qcom.h > index 9950a00..82cd143 100644 > --- a/drivers/ufs/host/ufs-qcom.h > +++ b/drivers/ufs/host/ufs-qcom.h > @@ -27,8 +27,6 @@ > #define SLOW 1 > #define FAST 2 > > -#define UFS_QCOM_LIMIT_HS_RATE PA_HS_MODE_B > - > /* QCOM UFS host controller vendor specific registers */ > enum { > REG_UFS_SYS1CLK_1US = 0xC0, > -- > 2.7.4 > -- மணிவண்ணன் சதாசிவம்