projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ade921a
)
scsi: ufs: Introduce phy_initialization helper
author
Stanley Chu
<stanley.chu@mediatek.com>
Sat, 5 Dec 2020 12:00:39 +0000
(20:00 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Mon, 7 Dec 2020 23:00:06 +0000
(18:00 -0500)
Introduce phy_initialization helper since this is the only one variant
function without helper.
Link:
https://lore.kernel.org/r/20201205120041.26869-3-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>
drivers/scsi/ufs/ufshcd.h
patch
|
blob
|
history
diff --git
a/drivers/scsi/ufs/ufshcd.h
b/drivers/scsi/ufs/ufshcd.h
index f92be8aea7a8182c7108a929f1363a62afc1b9ac..8c44929bed53e235c9dfb3a60b80fd305b9f3cac 100644
(file)
--- a/
drivers/scsi/ufs/ufshcd.h
+++ b/
drivers/scsi/ufs/ufshcd.h
@@
-1136,6
+1136,14
@@
static inline int ufshcd_vops_link_startup_notify(struct ufs_hba *hba,
return 0;
}
+static inline int ufshcd_vops_phy_initialization(struct ufs_hba *hba)
+{
+ if (hba->vops && hba->vops->phy_initialization)
+ return hba->vops->phy_initialization(hba);
+
+ return 0;
+}
+
static inline int ufshcd_vops_pwr_change_notify(struct ufs_hba *hba,
bool status,
struct ufs_pa_layer_attr *dev_max_params,