Message ID | 20250503162440.2954-1-quic_nitirawa@quicinc.com |
---|---|
Headers | show |
Series | Refactor ufs phy powerup sequence | expand |
On Sat, May 03, 2025 at 09:54:36PM +0530, Nitin Rawat wrote: > qmp_ufs_exit() is a wrapper function. It only calls qmp_ufs_com_exit(). > Remove it to simplify the ufs phy driver. > > Additonally partial Inline(dropping the reset assert) qmp_ufs_com_exit > into qmp_ufs_power_off function to avoid unnecessary function call. > > Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> > --- > drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 29 +++++-------------------- > 1 file changed, 5 insertions(+), 24 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
On Sat, May 03, 2025 at 09:54:37PM +0530, Nitin Rawat wrote: > In qmp_ufs_power_off, the PHY is already powered down by asserting > QPHY_PCS_POWER_DOWN_CONTROL. Therefore, additional phy_reset and > stopping SerDes are unnecessary. Also this approach does not > align with the phy HW programming guide. > > Thus, refactor qmp_ufs_power_off to remove the phy_reset and stop > SerDes calls to simplify the code and ensure alignment with the PHY > HW programming guide. > > Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> > --- > drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 7 ------- > 1 file changed, 7 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>