| .. | .. |
|---|
| 22 | 22 | struct regmap *regmap; |
|---|
| 23 | 23 | struct clk *pclk; |
|---|
| 24 | 24 | struct reset_control *rstc; |
|---|
| 25 | | - enum phy_mode mode; |
|---|
| 26 | 25 | bool is_cable_mode; |
|---|
| 27 | 26 | }; |
|---|
| 28 | 27 | |
|---|
| .. | .. |
|---|
| 921 | 920 | return 0; |
|---|
| 922 | 921 | } |
|---|
| 923 | 922 | |
|---|
| 924 | | -static int rk628_combrxphy_set_mode(struct phy *phy, enum phy_mode mode) |
|---|
| 925 | | -{ |
|---|
| 926 | | - struct rk628_combrxphy *combrxphy = phy_get_drvdata(phy); |
|---|
| 927 | | - |
|---|
| 928 | | - combrxphy->mode = mode; |
|---|
| 929 | | - |
|---|
| 930 | | - return 0; |
|---|
| 931 | | -} |
|---|
| 932 | | - |
|---|
| 933 | 923 | static const struct phy_ops rk628_combrxphy_ops = { |
|---|
| 934 | | - .set_mode = rk628_combrxphy_set_mode, |
|---|
| 935 | 924 | .power_on = rk628_combrxphy_power_on, |
|---|
| 936 | 925 | .power_off = rk628_combrxphy_power_off, |
|---|
| 937 | 926 | .owner = THIS_MODULE, |
|---|