Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11935pxu; Tue, 24 Nov 2020 16:57:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzItMwmEM8dxa4L4ad1rm2SDBSS9j4axZ4Utzw5ozZC096h/nc9QnIYtEfLzucYK6bM0hRJ X-Received: by 2002:aa7:d351:: with SMTP id m17mr1161642edr.215.1606265826559; Tue, 24 Nov 2020 16:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606265826; cv=none; d=google.com; s=arc-20160816; b=lQBc4ooRBv8iK7Ref2beGZKhzQFCzD2XUve0L7haOyBKhWm3w8FIZDnJ0dF3m9/WCH 8Qs9HN7VjrcAStsOVq3j0ZIQ5GIFKGIXAcG/IUJdLuB9Y//wxfV31dmlp0fAyLNvRHXl m979sIfgclGUZHeKh4FDjtTLLfRPoBSb4yaYkou5zMbCpaR1nibLcG64yupuOy2Musf3 xGbBIkA40tF27VruGsz/TKbhAI/87h14roAaeWhEmnSoTH4q6LW2tykJ7xVwB6IfHQhY UFdqe5oyxZBpKIukYsZsrrBdc06c47Iy1QD50XkILnj0IcmmDJr/BmGX0KKBAW+5oA4r MHPA== 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=HUsEpWpEk8fh+QW/RzVw1weMcorPYrNWedOn0ByEUqA=; b=RAL10ppENMePK8t9X9OagzT9jNOKxg4Xb1lHf2DKe7lqvS2NFMKPSJxlFBXg1ZyERy EJlnx2hH+U0pA9XJuPuKnYkGcHtAJV1a1qzzSBlZHqqoqB8rh7Ax8shazrmSv8BI1jpJ uFjGNIR+IoosbFhgbO4YF5LZWpManAUM674FFFeq3xsU5xYQwBHv7/q0XNmlZ0/gv56z n3eo4gZS1rFueGm5S57dJ4gbyY45q7aXexQYUzIIcNmKa5dFJRxbA4nIpgKaQsdcSJR4 GMYqAwlyjr81cjRdBa281f8fvLChuafRk6PskPscpbn/5J8S49njGqHnjLBCK4IFFEJc Nllg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=xdosggZI; 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 m3si336309ejd.499.2020.11.24.16.56.43; Tue, 24 Nov 2020 16:57:06 -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=xdosggZI; 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 S1726731AbgKYAyL (ORCPT + 99 others); Tue, 24 Nov 2020 19:54:11 -0500 Received: from m42-4.mailgun.net ([69.72.42.4]:61476 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbgKYAyL (ORCPT ); Tue, 24 Nov 2020 19:54:11 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1606265650; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=HUsEpWpEk8fh+QW/RzVw1weMcorPYrNWedOn0ByEUqA=; b=xdosggZIAg4BF1Qd5XPSsYXcUh6CoBuXbW1wzb1NHWmvD2FW0TsE35zG6dKG80yejsTqdcW+ u1brGzUa2YLE+JCcm9A46BZk3eOAHnLREvYX4g65hjcPl32c0sI3LXzIdZUvRA9oDL3iTKy5 DbqVH9iloZPr+HnNqn4lKoEJ0Dw= X-Mailgun-Sending-Ip: 69.72.42.4 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-n01.prod.us-east-1.postgun.com with SMTP id 5fbdab13a5c560669c48b36c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 25 Nov 2020 00:53:39 GMT Sender: cang=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1A30BC4346A; Wed, 25 Nov 2020 00:53:39 +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 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: cang) by smtp.codeaurora.org (Postfix) with ESMTPSA id 21CB5C433ED; Wed, 25 Nov 2020 00:53:38 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 25 Nov 2020 08:53:37 +0800 From: Can Guo To: Bean Huo Cc: asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@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 Subject: Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk In-Reply-To: <9070660d115dd96c70bc3cc90d5c7dab833f36a8.camel@gmail.com> 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: X-Sender: cang@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 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; >> }; >>