Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-25 Thread Can Guo
On 2020-11-26 03:02, Bean Huo wrote: On Wed, 2020-11-25 at 20:28 +0800, Can Guo wrote: > On Wed, 2020-11-25 at 08:53 +0800, Can Guo wrote: > > > > + bool always_on_while_link_active; > > > > > > Can, > > > using a sentence as a parameter name looks a little bit clumsy > > > to > > > me. >

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-25 Thread Can Guo
On 2020-11-26 08:58, Stanley Chu wrote: Hi Can, "Refector" in title shall be "Refactor"? On Mon, 2020-11-23 at 23:28 -0800, Can Guo wrote: Remove the param skip_ref_clk from __ufshcd_setup_clocks(), but keep a flag in struct ufs_clk_info to tell whether a clock can be disabled or not while t

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-25 Thread Stanley Chu
Hi Can, "Refector" in title shall be "Refactor"? On Mon, 2020-11-23 at 23:28 -0800, Can Guo wrote: > Remove the param skip_ref_clk from __ufshcd_setup_clocks(), but keep a flag > in struct ufs_clk_info to tell whether a clock can be disabled or not while > the link is active. > > Signed-off-by:

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-25 Thread Bean Huo
On Wed, 2020-11-25 at 20:28 +0800, Can Guo wrote: > > On Wed, 2020-11-25 at 08:53 +0800, Can Guo wrote: > > > > > + bool always_on_while_link_active; > > > > > > > > Can, > > > > using a sentence as a parameter name looks a little bit clumsy > > > > to > > > > me. > > > > The meaning has bee

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-25 Thread Can Guo
On 2020-11-25 19:54, Bean Huo wrote: On Wed, 2020-11-25 at 08:53 +0800, Can Guo wrote: > > + 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 i

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-25 Thread Bean Huo
On Wed, 2020-11-25 at 08:53 +0800, Can Guo wrote: > > > + 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

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-24 Thread hongwus
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 us

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-24 Thread Can Guo
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:

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-24 Thread Bean Huo
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 frequenc

[PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-23 Thread Can Guo
Remove the param skip_ref_clk from __ufshcd_setup_clocks(), but keep a flag in struct ufs_clk_info to tell whether a clock can be disabled or not while the link is active. Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd-pltfrm.c | 2 ++ drivers/scsi/ufs/ufshcd.c| 25 +