Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9d4ff08f authored by Asutosh Das's avatar Asutosh Das
Browse files

scsi: ufs: Fix phy init sequence



Phy init is assumed to be done during powerup sequence.
The phy init is now being invoked during clock init as
well. At this point in initialization the phy mode and
submode is not yet set. So the phy initialization puts
the phy in a weird state. It also increments the counters
that prevent re-init and re-power-on of the phy.
Thus, when the phy init is invoked during powerup sequence,
it just returns thus leading to failures during controller
enable.

This patch fixes this by removing the phy init during
clock init.

The ufs device reset traditionally uses pinctrl.
This patch moves it to gpio based reset.

Change-Id: Id9205185b042e4f11fc4132419a179ba81af7226
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
Signed-off-by: default avatarBao D Nguyen <nguyenb@codeaurora.org>
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent ae89f176
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment