Skip to content

Commit 0444568

Browse files
Ajay Neelimartinkpetersen
authored andcommitted
scsi: ufs: amd-versal2: Fix PHY initialization in HCE enable notify
Move the PHY initialization from PRE_CHANGE to POST_CHANGE in the ufs_versal2_hce_enable_notify() callback. This ensures that the PHY is initialized after the host controller enable sequence is complete, rather than before it starts. The PHY initialization requires the UFS host controller to be in a stable enabled state to properly configure the MPHY registers. Moving this to POST_CHANGE aligns with the expected initialization order and prevents potential timing issues during controller startup. Fixes: 769b8b2 ("scsi: ufs: amd-versal2: Add UFS support for AMD Versal Gen 2 SoC") Signed-off-by: Ajay Neeli <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent b2d6b1d commit 0444568

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ufs/host/ufs-amd-versal2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static int ufs_versal2_hce_enable_notify(struct ufs_hba *hba,
367367
{
368368
int ret = 0;
369369

370-
if (status == PRE_CHANGE) {
370+
if (status == POST_CHANGE) {
371371
ret = ufs_versal2_phy_init(hba);
372372
if (ret)
373373
dev_err(hba->dev, "Phy init failed (%d)\n", ret);

0 commit comments

Comments
 (0)