|
|
@@ -61,7 +61,7 @@ struct phy_ops {
|
|
|
int (*exit)(struct phy *phy);
|
|
|
int (*power_on)(struct phy *phy);
|
|
|
int (*power_off)(struct phy *phy);
|
|
|
- int (*set_mode)(struct phy *phy, enum phy_mode mode);
|
|
|
+ int (*set_mode)(struct phy *phy, enum phy_mode mode, int submode);
|
|
|
int (*reset)(struct phy *phy);
|
|
|
int (*calibrate)(struct phy *phy);
|
|
|
void (*release)(struct phy *phy);
|
|
|
@@ -166,7 +166,10 @@ int phy_init(struct phy *phy);
|
|
|
int phy_exit(struct phy *phy);
|
|
|
int phy_power_on(struct phy *phy);
|
|
|
int phy_power_off(struct phy *phy);
|
|
|
-int phy_set_mode(struct phy *phy, enum phy_mode mode);
|
|
|
+int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode);
|
|
|
+#define phy_set_mode(phy, mode) \
|
|
|
+ phy_set_mode_ext(phy, mode, 0)
|
|
|
+
|
|
|
static inline enum phy_mode phy_get_mode(struct phy *phy)
|
|
|
{
|
|
|
return phy->attrs.mode;
|
|
|
@@ -280,13 +283,17 @@ static inline int phy_power_off(struct phy *phy)
|
|
|
return -ENOSYS;
|
|
|
}
|
|
|
|
|
|
-static inline int phy_set_mode(struct phy *phy, enum phy_mode mode)
|
|
|
+static inline int phy_set_mode_ext(struct phy *phy, enum phy_mode mode,
|
|
|
+ int submode)
|
|
|
{
|
|
|
if (!phy)
|
|
|
return 0;
|
|
|
return -ENOSYS;
|
|
|
}
|
|
|
|
|
|
+#define phy_set_mode(phy, mode) \
|
|
|
+ phy_set_mode_ext(phy, mode, 0)
|
|
|
+
|
|
|
static inline enum phy_mode phy_get_mode(struct phy *phy)
|
|
|
{
|
|
|
return PHY_MODE_INVALID;
|