lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 5 Dec 2020 10:39:34 +0800 From: Stanley Chu <stanley.chu@...iatek.com> To: <linux-scsi@...r.kernel.org>, <martin.petersen@...cle.com>, <avri.altman@....com>, <alim.akhtar@...sung.com>, <jejb@...ux.ibm.com> CC: <beanhuo@...ron.com>, <asutoshd@...eaurora.org>, <cang@...eaurora.org>, <matthias.bgg@...il.com>, <bvanassche@....org>, <linux-mediatek@...ts.infradead.org>, <linux-arm-kernel@...ts.infradead.org>, <linux-kernel@...r.kernel.org>, <kuohong.wang@...iatek.com>, <peter.wang@...iatek.com>, <chun-hung.wu@...iatek.com>, <andy.teng@...iatek.com>, <chaotian.jing@...iatek.com>, <cc.chou@...iatek.com>, <jiajie.hao@...iatek.com>, <alice.chao@...iatek.com>, <huadian.liu@...iatek.com>, Stanley Chu <stanley.chu@...iatek.com> Subject: [PATCH v4 4/8] scsi: ufs-dwc: Use phy_initialization helper Use phy_initialization helper instead of direct invoking. Signed-off-by: Stanley Chu <stanley.chu@...iatek.com> --- drivers/scsi/ufs/ufshcd-dwc.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd-dwc.c b/drivers/scsi/ufs/ufshcd-dwc.c index 6a901da2d15a..5bb9d3a88795 100644 --- a/drivers/scsi/ufs/ufshcd-dwc.c +++ b/drivers/scsi/ufs/ufshcd-dwc.c @@ -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); -- 2.18.0
Powered by blists - more mailing lists