We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b19c45 commit 2ff6365Copy full SHA for 2ff6365
drivers/phy/samsung/phy-samsung-ufs.c
@@ -99,12 +99,18 @@ static int samsung_ufs_phy_calibrate(struct phy *phy)
99
100
for_each_phy_lane(ufs_phy, i) {
101
if (ufs_phy->ufs_phy_state == CFG_PRE_INIT &&
102
- ufs_phy->drvdata->wait_for_cal)
+ ufs_phy->drvdata->wait_for_cal) {
103
err = ufs_phy->drvdata->wait_for_cal(phy, i);
104
+ if (err)
105
+ goto out;
106
+ }
107
108
if (ufs_phy->ufs_phy_state == CFG_POST_PWR_HS &&
- ufs_phy->drvdata->wait_for_cdr)
109
+ ufs_phy->drvdata->wait_for_cdr) {
110
err = ufs_phy->drvdata->wait_for_cdr(phy, i);
111
112
113
114
}
115
116
/**
0 commit comments