summaryrefslogtreecommitdiff
path: root/include/linux/phylink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/phylink.h')
-rw-r--r--include/linux/phylink.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h
index b2619cde64f5..57d867290662 100644
--- a/include/linux/phylink.h
+++ b/include/linux/phylink.h
@@ -471,7 +471,8 @@ struct phylink_pcs {
* (where necessary).
*/
struct phylink_pcs_ops {
- int (*pcs_validate)(struct phylink_pcs *pcs, unsigned long *supported,
+ int (*pcs_validate)(struct phylink_pcs *pcs, unsigned int mode,
+ unsigned long *supported,
const struct phylink_link_state *state);
int (*pcs_enable)(struct phylink_pcs *pcs);
void (*pcs_disable)(struct phylink_pcs *pcs);
@@ -494,6 +495,7 @@ struct phylink_pcs_ops {
/**
* pcs_validate() - validate the link configuration.
* @pcs: a pointer to a &struct phylink_pcs.
+ * @mode: link autonegotiation mode
* @supported: ethtool bitmask for supported link modes.
* @state: a const pointer to a &struct phylink_link_state.
*
@@ -505,8 +507,8 @@ struct phylink_pcs_ops {
* Returns -EINVAL if the interface mode/autoneg mode is not supported.
* Returns non-zero positive if the link state can be supported.
*/
-int pcs_validate(struct phylink_pcs *pcs, unsigned long *supported,
- const struct phylink_link_state *state);
+int pcs_validate(struct phylink_pcs *pcs, unsigned int mode,
+ unsigned long *supported, struct phylink_link_state *state);
/**
* pcs_enable() - enable the PCS.