diff options
| author | Pengpeng Hou <hppiscas@163.com> | 2026-09-20 11:49:53 +0800 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-10-05 21:50:54 -0400 |
| commit | 78e04810542da416d3bead707b60cec773f1524d (patch) | |
| tree | c9a00226199faa50f9c7a8b5c39922e30e38e312 /tools/lib/python/kdoc | |
| parent | 85de8b3a5eaa23d153aff4c7c83dddbc949064c9 (diff) | |
| download | linux-next-78e04810542da416d3bead707b60cec773f1524d.tar.gz linux-next-78e04810542da416d3bead707b60cec773f1524d.zip | |
scsi: ufs: mediatek: Handle mPHY power-on failures
The MediaTek helper enables VA09 before powering on the mPHY, but ignores
the PHY result. A failure can leave VA09 enabled and publish
mphy_powered_on as true, so a later power-on attempt is skipped.
Check phy_power_on(), attempt to unwind VA09 on failure, and leave the
state flag unchanged. Propagate the helper result from host initialization
as well as its existing resume caller. Keep the original PHY error if the
supply rollback also fails, and report that rollback separately.
The issue was found by our static-analysis tool.
Fixes: 561e3a8726b2 ("scsi: ufs-mediatek: Fix unbalanced clock on/off")
Fixes: cf137b3ea49a ("scsi: ufs-mediatek: Support VA09 regulator operations")
Assisted-by: gpt 5
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Reviewed-by: Stanley Jhu <stanleyjhu@google.com>
Link: https://patch.msgid.link/20260920034953.19535-1-hppiscas@163.com
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
