Commit ab981054 authored by Stanley Chu's avatar Stanley Chu Committed by Martin K. Petersen

scsi: ufs-dwc: Use phy_initialization helper

Use phy_initialization helper instead of direct invocation.

Link: https://lore.kernel.org/r/20201205120041.26869-5-stanley.chu@mediatek.comReviewed-by: default avatarAvri Altman <avri.altman@wdc.com>
Signed-off-by: default avatarStanley Chu <stanley.chu@mediatek.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 88544573
...@@ -120,14 +120,11 @@ int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, ...@@ -120,14 +120,11 @@ int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba,
if (status == PRE_CHANGE) { if (status == PRE_CHANGE) {
ufshcd_dwc_program_clk_div(hba, DWC_UFS_REG_HCLKDIV_DIV_125); ufshcd_dwc_program_clk_div(hba, DWC_UFS_REG_HCLKDIV_DIV_125);
if (hba->vops->phy_initialization) { err = ufshcd_vops_phy_initialization(hba);
err = hba->vops->phy_initialization(hba);
if (err) { if (err) {
dev_err(hba->dev, "Phy setup failed (%d)\n", dev_err(hba->dev, "Phy setup failed (%d)\n", err);
err);
goto out; goto out;
} }
}
} else { /* POST_CHANGE */ } else { /* POST_CHANGE */
err = ufshcd_dwc_link_is_up(hba); err = ufshcd_dwc_link_is_up(hba);
if (err) { if (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment