mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
UPSTREAM: 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: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit ab98105484)
Bug: 204438323
Change-Id: I67e9046996aea433c8e6ecca2bbd1c9917fafa66
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Bart Van Assche
parent
afc50512d7
commit
70c7deb9d9
@@ -120,13 +120,10 @@ 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);
|
||||
if (err) {
|
||||
dev_err(hba->dev, "Phy setup failed (%d)\n",
|
||||
err);
|
||||
goto out;
|
||||
}
|
||||
err = ufshcd_vops_phy_initialization(hba);
|
||||
if (err) {
|
||||
dev_err(hba->dev, "Phy setup failed (%d)\n", err);
|
||||
goto out;
|
||||
}
|
||||
} else { /* POST_CHANGE */
|
||||
err = ufshcd_dwc_link_is_up(hba);
|
||||
|
||||
Reference in New Issue
Block a user