OSDN Git Service

scsi: ufs: ufs-mediatek: Fix the timing of configuring device regulators
authorPo-Wen Kao <powen.kao@mediatek.com>
Thu, 16 Jun 2022 05:37:18 +0000 (13:37 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Jun 2022 02:08:43 +0000 (22:08 -0400)
commit3fd23b8dfb54d9b74eba6dfdd3225db3ac116785
treee5b3198d96532cb4c86e1ef771dc90e877b53d1f
parent3f9b6cec12e2d2b3bdf69d47979b7877985c55e0
scsi: ufs: ufs-mediatek: Fix the timing of configuring device regulators

Currently the LPM configurations of device regulators may not work since
VCC is not disabled yet while ufs_mtk_vreg_set_lpm() is executed.

Fix this by changing the timing of invoking ufs_mtk_vreg_set_lpm().

Link: https://lore.kernel.org/r/20220616053725.5681-5-stanley.chu@mediatek.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Po-Wen Kao <powen.kao@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