scsi: ufs: ufs-mediatek: Disable unused VCCQx power rails
authorStanley Chu <stanley.chu@mediatek.com>
Thu, 16 Jun 2022 05:37:25 +0000 (13:37 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Jun 2022 02:08:44 +0000 (22:08 -0400)
commitcb142b6d2f60ef7f676acf2dc84257ed05dfd7bd
tree8b1c1725e4a5f6b2d7cf09609dd327d7b555f427
parentece418d0291117e3fc700f10e7fa9187010e38a0
scsi: ufs: ufs-mediatek: Disable unused VCCQx power rails

Some MediaTek UFS platforms support different VCCQx power rails, for
example, both 1.2v and 1.8v VCCQx, in a single kernel image.

To optimize the system power consumption, provide a way to disable and
release the unused power rail during the device probing.

Link: https://lore.kernel.org/r/20220616053725.5681-12-stanley.chu@mediatek.com
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-mediatek.c