scsi: ufs: Allow regulators being always-on
authorStanley Chu <stanley.chu@mediatek.com>
Mon, 7 Dec 2020 05:49:54 +0000 (13:49 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Dec 2020 16:34:19 +0000 (11:34 -0500)
commitf8162ac70ecf5a3ed638f96dc10e0e19b523ec7f
tree8541ee79bbe501936340e2edcfbe20ee9246942f
parent1918651f2d7e8d58c9b7c49755c61e41ed655009
scsi: ufs: Allow regulators being always-on

Introduce a flag "always_on" in struct ufs_vreg to allow vendors to keep
the regulator always-on.

Link: https://lore.kernel.org/r/20201207054955.24366-2-stanley.chu@mediatek.com
Reviewed-by: Andy Teng <andy.teng@mediatek.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs.h
drivers/scsi/ufs/ufshcd.c