mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
scsi: ufs: host: mediatek: Fix device power control
Adjust the timing of device power control to ensure low power mode (LPM) is entered only after VCC is turned off. Prevent VCCQ/VCCQ2 from entering LPM prematurely, ensuring proper power management and device stability. Signed-off-by: Peter Wang <peter.wang@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
91cad911ed
commit
2936049277
|
|
@ -2342,6 +2342,13 @@ static int ufs_mtk_probe(struct platform_device *pdev)
|
|||
host->phy_dev = phy_dev;
|
||||
}
|
||||
|
||||
/*
|
||||
* Because the default power setting of VSx (the upper layer of
|
||||
* VCCQ/VCCQ2) is HWLP, we need to prevent VCCQ/VCCQ2 from
|
||||
* entering LPM.
|
||||
*/
|
||||
ufs_mtk_dev_vreg_set_lpm(hba, false);
|
||||
|
||||
out:
|
||||
of_node_put(phy_node);
|
||||
of_node_put(reset_node);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user