immortalwrt/target/linux/ramips
René van Dorst 568e2da796
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>
2020-11-24 23:22:56 +08:00
..
base-files/etc ramips: remove model name from LED labels 2020-11-21 19:29:29 +08:00
dts ramips: add support for TP-Link MR6400 v4 2020-11-24 23:20:03 +08:00
files/drivers ramips: ralink: rename some functions 2020-10-22 12:43:59 +08:00
image ramips: add support for TP-Link MR6400 v4 2020-11-24 23:20:03 +08:00
mt76x8 ramips: add support for TP-Link MR6400 v4 2020-11-24 23:20:03 +08:00
mt7620 treewide: remove model name from LED labels 2020-11-22 14:36:13 +08:00
mt7621 treewide: remove model name from LED labels 2020-11-22 14:36:13 +08:00
patches-5.4 ramips: phy: at803x: Select SFP interface mode that both sides supports. 2020-11-24 23:22:56 +08:00
rt288x ramips: remove option to set WiFi LED via aliases 2020-11-22 01:22:46 +08:00
rt305x ramips: remove option to set WiFi LED via aliases 2020-11-22 01:22:46 +08:00
rt3883 ramips: remove option to set WiFi LED via aliases 2020-11-22 01:22:46 +08:00
Makefile ramips: switch rt305x subtarget to kernel 5.4 2020-08-07 18:03:27 +08:00
modules.mk ramips: add kernel 5.4 support 2020-04-16 22:15:27 +08:00