summaryrefslogtreecommitdiff
path: root/drivers/net/pcs/pcs-lynx.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-01-18 10:18:55 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-01-18 10:18:55 +0000
commit51efd61e20a08e1a262c3b8b6219600ebca2006c (patch)
tree887b7604bffd071d5a07640040cc8c9d7f7b09a6 /drivers/net/pcs/pcs-lynx.c
parent956c86b60ce352b3e195c6f0700a07176989d356 (diff)
parente2365fc3e4a0e134ee7f875ce71f0abaaeb4552d (diff)
Merge branches 'mvebu-cpuidle' and 'mvneta' into clearfog
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;
}