projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c580165
)
net: phylink: Test if MAC/PCS support Autoneg
author
Jose Abreu
<Jose.Abreu@synopsys.com>
Mon, 9 Mar 2020 08:36:25 +0000
(09:36 +0100)
committer
David S. Miller
<davem@davemloft.net>
Tue, 10 Mar 2020 03:13:16 +0000
(20:13 -0700)
We may have cases where MAC or PCS do not support Autoneg. Check if it
is supported after validate callback is called.
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phylink.c
b/drivers/net/phy/phylink.c
index
47f4ce0
..
19db68d
100644
(file)
--- a/
drivers/net/phy/phylink.c
+++ b/
drivers/net/phy/phylink.c
@@
-340,6
+340,9
@@
static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
"failed to validate link configuration for in-band status\n");
return -EINVAL;
}
+
+ /* Check if MAC/PCS also supports Autoneg. */
+ pl->link_config.an_enabled = phylink_test(pl->supported, Autoneg);
}
return 0;