diff options
author | Stanley Chu <stanley.chu@mediatek.com> | 2020-12-07 06:49:54 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-12-09 17:34:19 +0100 |
commit | f8162ac70ecf5a3ed638f96dc10e0e19b523ec7f (patch) | |
tree | 8541ee79bbe501936340e2edcfbe20ee9246942f /drivers/scsi/ufs/ufs.h | |
parent | scsi: ufs: Clear UAC for RPMB after ufshcd resets (diff) | |
download | linux-f8162ac70ecf5a3ed638f96dc10e0e19b523ec7f.tar.xz linux-f8162ac70ecf5a3ed638f96dc10e0e19b523ec7f.zip |
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>
Diffstat (limited to 'drivers/scsi/ufs/ufs.h')
-rw-r--r-- | drivers/scsi/ufs/ufs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 142c2ebd3d7d..14dfda735adf 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -512,6 +512,7 @@ struct ufs_query_res { struct ufs_vreg { struct regulator *reg; const char *name; + bool always_on; bool enabled; int min_uV; int max_uV; |