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

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.com


Reviewed-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
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -120,14 +120,11 @@ int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba,
	if (status == PRE_CHANGE) {
		ufshcd_dwc_program_clk_div(hba, DWC_UFS_REG_HCLKDIV_DIV_125);

		if (hba->vops->phy_initialization) {
			err = hba->vops->phy_initialization(hba);
		err = ufshcd_vops_phy_initialization(hba);
		if (err) {
				dev_err(hba->dev, "Phy setup failed (%d)\n",
									err);
			dev_err(hba->dev, "Phy setup failed (%d)\n", err);
			goto out;
		}
		}
	} else { /* POST_CHANGE */
		err = ufshcd_dwc_link_is_up(hba);
		if (err) {