diff options
Diffstat (limited to 'drivers/net/pcs/pcs-lynx.c')
-rw-r--r-- | drivers/net/pcs/pcs-lynx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/pcs/pcs-lynx.c b/drivers/net/pcs/pcs-lynx.c index 7d5fc7f54b2f..fa16c8149002 100644 --- a/drivers/net/pcs/pcs-lynx.c +++ b/drivers/net/pcs/pcs-lynx.c @@ -138,7 +138,7 @@ static int lynx_pcs_config_giga(struct mdio_device *pcs, unsigned int mode, if_mode = 0; } else { if_mode = IF_MODE_SGMII_EN; - if (mode == MLO_AN_INBAND) { + if (phylink_mode_inband(mode)) { if_mode |= IF_MODE_USE_SGMII_AN; /* Adjust link timer for SGMII */ @@ -222,7 +222,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) @@ -274,7 +274,7 @@ static void lynx_pcs_link_up_2500basex(struct mdio_device *pcs, { 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; } |