summaryrefslogtreecommitdiff
path: root/drivers/net/pcs/pcs-lynx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcs/pcs-lynx.c')
-rw-r--r--drivers/net/pcs/pcs-lynx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/pcs/pcs-lynx.c b/drivers/net/pcs/pcs-lynx.c
index af36cd647bf5..ac5f32fe375e 100644
--- a/drivers/net/pcs/pcs-lynx.c
+++ b/drivers/net/pcs/pcs-lynx.c
@@ -143,7 +143,7 @@ static int lynx_pcs_config_sgmii(struct mdio_device *pcs, unsigned int mode,
int err;
if_mode = IF_MODE_SGMII_EN;
- if (mode == MLO_AN_INBAND) {
+ if (phylink_mode_inband(mode)) {
u32 link_timer;
if_mode |= IF_MODE_USE_SGMII_AN;
@@ -230,7 +230,7 @@ static void lynx_pcs_link_up_sgmii(struct mdio_device *pcs, unsigned int mode,
/* The PCS needs to be configured manually only
* when not operating on in-band mode
*/
- if (mode == MLO_AN_INBAND)
+ if (phylink_mode_inband(mode))
return;
if (duplex == DUPLEX_HALF)
@@ -284,7 +284,7 @@ static void lynx_pcs_link_up_2500basex(struct mdio_device *pcs,
int addr = pcs->addr;
u16 if_mode = 0;
- if (mode == MLO_AN_INBAND) {
+ if (phylink_mode_inband(mode)) {
dev_err(&pcs->dev, "AN not supported for 2500BaseX\n");
return;
}