Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp47151pxu; Tue, 24 Nov 2020 18:10:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/akXFRFPo5w1KqnMhdZk2F51cLNkAMiyp1npIJHR06VmLJwS3/nmLllYZb6FDHDS/SBHV X-Received: by 2002:a50:cfcf:: with SMTP id i15mr1364220edk.351.1606270249191; Tue, 24 Nov 2020 18:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606270249; cv=none; d=google.com; s=arc-20160816; b=AQRNsQokT3DV9GOl/rP5rBDi5lcR5k56rEwvlFScCCMzwL8sgqsXmSxDv+hcjE/tKh aiJ+BWiXXB19fT+RVSgHfnRIzoRl4CPBX3ltNVc+TdVYAYysse8uOG1EFjsTZ5Rj/i51 ief2gGnjcJVl5u/iErjlzqDhdrYITt+0dKUtt2tCWkdqj1rb6g/HRgN9lQsQSLAOOsSA X2Y2NsnFR3T02xFu+7XPL56Z5ikAm7P1PIL92j7zNlHHPMXRb41NAZdSDj7OG8tifmJp o/br2jUD2RFwTPiWr+zNwYYzajkPSf132GTnEjmOYVP5RGtCxMiSjRVvED5SLwaEU7Vp Zu5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=S6E44d3995g7vEC1l0zAsDxmqGgmEe2drvRJsKeYYSA=; b=rRk+KXzFkarAEa62KJEiUErXGcZBmccxRlb4iM5+RNRD4g+JZWxIsouwTTb7PWujcd X/CEli6Yo7+NA2vkqO48QekhuFs5v4CpIvPfxnAuXs7IYdgijZqHx3oqIR8JASAlbBfi y57u8mvwb38lq2VRyr3bcfy1IfKx+2KKaLmDdBB7JA3bWH/ocxU6H1/aLUML7rPpNuFO SjSYuhcZF+y/1OXXul1woDSyPCkeALYql8vmPQdBWthSf22fTCp7EgZf/y7xAAudJ7/E 8cbglCOJIAcwVz1koXDRc1IVu0oPHwqdMuq7ip343j7EISN7YKrSQJOb3HlSKblc3sZQ 6+/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Yur+7ih2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si322467edr.547.2020.11.24.18.10.26; Tue, 24 Nov 2020 18:10:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Yur+7ih2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726775AbgKYCCH (ORCPT + 99 others); Tue, 24 Nov 2020 21:02:07 -0500 Received: from z5.mailgun.us ([104.130.96.5]:34772 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbgKYCCG (ORCPT ); Tue, 24 Nov 2020 21:02:06 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1606269726; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=S6E44d3995g7vEC1l0zAsDxmqGgmEe2drvRJsKeYYSA=; b=Yur+7ih2yQb+9zsrNORLYMTjov5XNC30glgEaucTs1UbW9RrdjFHtNMiYAiEOFUOLvnDcdax g5eYv/Zv3r5XF7hFjtQKCjPhtbwb7TjDwzYuzRmgbOV/6klidZd04862ObfNhm45gNAp4E8d FSioxvpRvCLiHUCgGp4WKxFTt34= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n10.prod.us-west-2.postgun.com with SMTP id 5fbdbae31dba509aaea3fe49 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 25 Nov 2020 02:01:07 GMT Sender: hongwus=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6BCDFC43468; Wed, 25 Nov 2020 02:01:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: hongwus) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6A80BC433C6; Wed, 25 Nov 2020 02:01:05 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 25 Nov 2020 10:01:05 +0800 From: hongwus@codeaurora.org To: Can Guo Cc: Bean Huo , asutoshd@codeaurora.org, nguyenb@codeaurora.org, ziqichen@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Tomas Winkler , Bean Huo , Stanley Chu , Bart Van Assche , Satya Tangirala , open list , cang=codeaurora.org@codeaurora.org Subject: Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk In-Reply-To: References: <1606202906-14485-1-git-send-email-cang@codeaurora.org> <1606202906-14485-2-git-send-email-cang@codeaurora.org> <9070660d115dd96c70bc3cc90d5c7dab833f36a8.camel@gmail.com> Message-ID: <2bdcfeaa104a380425faa68a0479534d@codeaurora.org> X-Sender: hongwus@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-11-25 08:53, Can Guo wrote: > On 2020-11-25 05:09, Bean Huo wrote: >> On Mon, 2020-11-23 at 23:28 -0800, Can Guo wrote: >>> +++ b/drivers/scsi/ufs/ufshcd.h >>> @@ -229,6 +229,8 @@ struct ufs_dev_cmd { >>> * @max_freq: maximum frequency supported by the clock >>> * @min_freq: min frequency that can be used for clock scaling >>> * @curr_freq: indicates the current frequency that it is set to >>> + * @always_on_while_link_active: indicate that the clk should not be >>> disabled if >>> + link is still active >>> * @enabled: variable to check against multiple enable/disable >>> */ >>> struct ufs_clk_info { >>> @@ -238,6 +240,7 @@ struct ufs_clk_info { >>> u32 max_freq; >>> u32 min_freq; >>> u32 curr_freq; >>> + bool always_on_while_link_active; >> >> Can, >> using a sentence as a parameter name looks a little bit clumsy to me. >> The meaning has been explained in the comments section. How about >> simplify it and in line with other parameters in the structure? >> > > Do you have a better name in mind? > > Thanks, > > Can Guo. > >> Thanks, >> Bean >> >>> bool enabled; >>> }; >>> Looks good to me. The variable name is not a problem. Reviewed-by: Hongwu Su