diff options
author | Baruch Siach <[email protected]> | 2018-10-03 19:04:49 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-10-05 01:04:12 -0700 |
commit | 7e4183752735deb7543e179a44f4f4b44917cd6f (patch) | |
tree | 8e824d068ccec95206d0ff741d9224a2da60ab29 /tools/perf/util/trace-event-scripting.c | |
parent | 2d52527e80c2dc0c5f43f50adf183781262ec565 (diff) |
net: phy: phylink: fix SFP interface autodetection
When connecting SFP PHY to phylink use the detected interface.
Otherwise, the link fails to come up when the configured 'phy-mode'
differs from the SFP detected mode.
Move most of phylink_connect_phy() into __phylink_connect_phy(), and
leave phylink_connect_phy() as a wrapper. phylink_sfp_connect_phy() can
now pass the SFP detected PHY interface to __phylink_connect_phy().
This fixes 1GB SFP module link up on eth3 of the Macchiatobin board that
is configured in the DT to "2500base-x" phy-mode.
Fixes: 9525ae83959b6 ("phylink: add phylink infrastructure")
Suggested-by: Russell King <[email protected]>
Signed-off-by: Baruch Siach <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions