scsi: ufs: Refactor ufshcd_setup_clocks() to remove skip_ref_clk
authorCan Guo <cang@codeaurora.org>
Thu, 26 Nov 2020 02:01:00 +0000 (18:01 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Dec 2020 05:14:16 +0000 (00:14 -0500)
commit81309c247a4dcd597cbda5254fd0afdd61b93f14
treebf4bb9d5bf420b7f6fc7416754c8385f6740c7a7
parent817a7c996786f803a8b5528ca11a842eed88e01f
scsi: ufs: Refactor ufshcd_setup_clocks() to remove skip_ref_clk

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.

Link: https://lore.kernel.org/r/1606356063-38380-2-git-send-email-cang@codeaurora.org
Reviewed-by: Hongwu Su <hongwus@codeaurora.org>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd-pltfrm.c
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h