File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -945,7 +945,7 @@ static int imx6_pcie_host_init(struct dw_pcie_rp *pp)
945
945
}
946
946
947
947
if (imx6_pcie -> phy ) {
948
- ret = phy_power_on (imx6_pcie -> phy );
948
+ ret = phy_init (imx6_pcie -> phy );
949
949
if (ret ) {
950
950
dev_err (dev , "pcie PHY power up failed\n" );
951
951
goto err_clk_disable ;
@@ -959,7 +959,7 @@ static int imx6_pcie_host_init(struct dw_pcie_rp *pp)
959
959
}
960
960
961
961
if (imx6_pcie -> phy ) {
962
- ret = phy_init (imx6_pcie -> phy );
962
+ ret = phy_power_on (imx6_pcie -> phy );
963
963
if (ret ) {
964
964
dev_err (dev , "waiting for PHY ready timeout!\n" );
965
965
goto err_phy_off ;
@@ -971,7 +971,7 @@ static int imx6_pcie_host_init(struct dw_pcie_rp *pp)
971
971
972
972
err_phy_off :
973
973
if (imx6_pcie -> phy )
974
- phy_power_off (imx6_pcie -> phy );
974
+ phy_exit (imx6_pcie -> phy );
975
975
err_clk_disable :
976
976
imx6_pcie_clk_disable (imx6_pcie );
977
977
err_reg_disable :
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ struct imx8_pcie_phy {
59
59
bool clkreq_unused ;
60
60
};
61
61
62
- static int imx8_pcie_phy_init (struct phy * phy )
62
+ static int imx8_pcie_phy_power_on (struct phy * phy )
63
63
{
64
64
int ret ;
65
65
u32 val , pad_mode ;
@@ -137,14 +137,14 @@ static int imx8_pcie_phy_init(struct phy *phy)
137
137
return ret ;
138
138
}
139
139
140
- static int imx8_pcie_phy_power_on (struct phy * phy )
140
+ static int imx8_pcie_phy_init (struct phy * phy )
141
141
{
142
142
struct imx8_pcie_phy * imx8_phy = phy_get_drvdata (phy );
143
143
144
144
return clk_prepare_enable (imx8_phy -> clk );
145
145
}
146
146
147
- static int imx8_pcie_phy_power_off (struct phy * phy )
147
+ static int imx8_pcie_phy_exit (struct phy * phy )
148
148
{
149
149
struct imx8_pcie_phy * imx8_phy = phy_get_drvdata (phy );
150
150
@@ -155,8 +155,8 @@ static int imx8_pcie_phy_power_off(struct phy *phy)
155
155
156
156
static const struct phy_ops imx8_pcie_phy_ops = {
157
157
.init = imx8_pcie_phy_init ,
158
+ .exit = imx8_pcie_phy_exit ,
158
159
.power_on = imx8_pcie_phy_power_on ,
159
- .power_off = imx8_pcie_phy_power_off ,
160
160
.owner = THIS_MODULE ,
161
161
};
162
162
You can’t perform that action at this time.
0 commit comments