openwrt/target/linux/ramips
René van Dorst 5ff830e47d ramips: phy: at803x: Select SFP interface mode that both sides supports.
Currently sfp_select_interface() return the fastest interface that
the sfp modules supports even if the phy don't support that mode.

For example an GPON module that support both 2500basex and 1000basex.
Currently sfp_select_interface() picks 2500basex instead of 1000basex.

So limit the interfaces which both sides supports before calling
sfp_select_interface() or return an error if we don't have match.

Reviewed-by: John Thomson <git@johnthomson.fastmail.com.au>
Tested-by: Braihan Cantera <bcanterac@gmail.com> [MikroTik RB760iGS + Nokia G-010S-A 3FE46541AA SFP]
Tested-by: John Thomson <git@johnthomson.fastmail.com.au> [Mikrotik rb760igs + SFP SM/LC, SFP base1000T, SFP+ passive DAC]
Signed-off-by: René van Dorst <opensource@vdorst.com>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:07:13 +00:00
..
base-files/etc ramips: remove model name from LED labels 2021-09-01 08:07:03 +00:00
dts ramips: add support for TP-Link MR6400 v4 2021-09-01 08:07:13 +00:00
files/drivers ramips: drop kernel version switches 2021-09-01 08:07:04 +00:00
image ramips: add support for TP-Link MR6400 v4 2021-09-01 08:07:13 +00:00
mt76x8 ramips: add support for TP-Link MR6400 v4 2021-09-01 08:07:13 +00:00
mt7620 ramips: add support for Wavlink WL-WN530HG4 2021-09-01 08:07:07 +00:00
mt7621 ramips: mt7621: fix Telco X1 GPIO switches 2021-09-01 08:07:11 +00:00
patches-5.4 ramips: phy: at803x: Select SFP interface mode that both sides supports. 2021-09-01 08:07:13 +00:00
rt288x ramips: remove set_wifi_led function in 01_leds 2021-09-01 08:07:03 +00:00
rt305x ramips: remove set_wifi_led function in 01_leds 2021-09-01 08:07:03 +00:00
rt3883 ramips: remove set_wifi_led function in 01_leds 2021-09-01 08:07:03 +00:00
Makefile ramips: switch rt305x subtarget to kernel 5.4 2020-08-05 23:27:35 +02:00
modules.mk ramips: drop kernel version switches 2021-09-01 08:07:04 +00:00