Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2053319pxu; Tue, 24 Nov 2020 16:00:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVB+HDndjC1Ka7Jt4vhhYWV31zbs+mdNWGoQ/IggxWN0A7IweRncIAZQYHr12X+a8AYAOq X-Received: by 2002:aa7:c049:: with SMTP id k9mr974825edo.49.1606262443405; Tue, 24 Nov 2020 16:00:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606262443; cv=none; d=google.com; s=arc-20160816; b=y3mGgV8Xyn9pd9586kABABZZXYvvE5TgG91LGdQV0uVqzwirvvwFacncJQuK2znDRX 9rlxODIzmX1IaDDL+FXglM1247g+KsdtLNaa6HlYP2gc/RUyQVEF578mxkQv2ynK8K+3 mCs9NKSzPAQOPdJbHE3lxJmCK77N/M5sgV5QF11GweXPbZN52fkD3Hxk326nzN4Q9rNi 0dWMeYieGM+aOu6jOKZF+9s6vA75+MTfLTJklb8yM89X4T/2DcGdmkd9xb2PT28x8WuE ZewiGa/SpKc3YmP/mn3irFE9FSbG2brRGhnZ+BnoCi9Ea2YfB4+xG9mXjLFqVNBZ/6vK AJtA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=elrmmGmMMQ6PzIopqvZQCkanN6h0/gWDnjrJZkGJIrc=; b=NzZwWqT8vtW0PASWwtc6ZQEgn/aeTl0JweztYwOvZcKcR2xEmjj974yqhbzcK2o++V sSJMeaOuCU+bad94QbeNaCH+iCK4nmleCwtXxj6ymZCY/1Q1BqwYG0BoqvwwZHq5jCO+ TBYPTHIEwxCQTVcqIiOJUcHK2Kl5uvt5VYIXIN1HSiGjfff4lvozhhr8sayKYFwcXaL1 V9Q0iWB7pNTa8v5YPs2MolSnyweFvnPl5lqSOLtnNM3GJyNJQMAFDH3F8Xd75xstmB7R T28P26fnOKtvg5zNDO40EZZPF8BAmjIyHGwQOHYfqw2Ux+L00K9ckEv9Mgrgjt1iHc6u fZdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="g7LSYe/1"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 63si168908edn.339.2020.11.24.16.00.20; Tue, 24 Nov 2020 16:00:43 -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=@gmail.com header.s=20161025 header.b="g7LSYe/1"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729632AbgKXVJ0 (ORCPT + 99 others); Tue, 24 Nov 2020 16:09:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729619AbgKXVJZ (ORCPT ); Tue, 24 Nov 2020 16:09:25 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 168FAC0613D6; Tue, 24 Nov 2020 13:09:23 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id k9so15718754ejc.11; Tue, 24 Nov 2020 13:09:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=elrmmGmMMQ6PzIopqvZQCkanN6h0/gWDnjrJZkGJIrc=; b=g7LSYe/1dvjbcmdkl2nhyDWaLYIFni5VjHt4WQ/sh6N4iEqA9z4kUOjkpDf/ZTbbsb geuhN8jGiWp9hCsnMWIAfw9neXc1C82DlAgzW8v+vNCLtYbilVlfHhLogZtDm+Ggs6g7 rNQ4Ux8H0Q4jp41z8sKlhyeBNd7hTE81Y06Rcpj/xz7BjJJIJc3EL2vPVY+FmcZocYBK +P4lu6pswz1/nVv3upEM3bTW7GBJnyRtM1EVAo8flLsOde5HWzHxXFN6/TsnGDb1YP6m BDjqmrJfBTs/3Nq2qCsMbLVMJ5Z9GDlft5E6XTpAYu7FrXhk44MVVVfowJlT3Yx7uBUU bkvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=elrmmGmMMQ6PzIopqvZQCkanN6h0/gWDnjrJZkGJIrc=; b=Wcx4oBxZd6wm8f6ZTPmqmXI8L2iqrBAZ1B7uO27RyT+MDxrYhBekSPwD6tvkczQs7p LzUzvkDwi1jGJq4R3+t2m6+SqyjMRK0huKpFiMR50PbslHOcl+g4YBVKUI7wH+SR/yNu GHocYjQue7s7zJypak9iJFbeZ0I4CVqmYCUknuhDkVRSprW+We4Zgup5kbmVVgDdBfo5 kFQXF/iDD0vIEYvPGiGEFhhteUUgZD/JUvz1rAK4KgrhJp7lCtN86NqP/UimrOikSe5C YBEylzt+G9cJ2xKZMHlnjLBL4NvPs2NFHJJgmPiVV6N7AhlXLt6gROyFNnXWg0sgpYIT bojQ== X-Gm-Message-State: AOAM5314OYanR9p3cm9TFZSIG+X/NF+zoomVwxNBS5S45c4OwCS1mRi2 b/IRLgghTXuYtJzObGQ8ITk= X-Received: by 2002:a17:906:490:: with SMTP id f16mr353412eja.12.1606252161779; Tue, 24 Nov 2020 13:09:21 -0800 (PST) Received: from ubuntu-laptop (ip5f5bee2a.dynamic.kabel-deutschland.de. [95.91.238.42]) by smtp.googlemail.com with ESMTPSA id v8sm52468edt.3.2020.11.24.13.09.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Nov 2020 13:09:21 -0800 (PST) Message-ID: <9070660d115dd96c70bc3cc90d5c7dab833f36a8.camel@gmail.com> Subject: Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk From: Bean Huo To: Can Guo , 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 Cc: Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Tomas Winkler , Bean Huo , Stanley Chu , Bart Van Assche , Satya Tangirala , open list Date: Tue, 24 Nov 2020 22:09:18 +0100 In-Reply-To: <1606202906-14485-2-git-send-email-cang@codeaurora.org> References: <1606202906-14485-1-git-send-email-cang@codeaurora.org> <1606202906-14485-2-git-send-email-cang@codeaurora.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Bean > bool enabled; > }; >