Openwrt/target/linux/ramips
René van Dorst 6e1a4496f5 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-23 22:53:15 +01:00
..
base-files/etc
dts ramips: add support for TP-Link MR6400 v4 2020-11-23 00:46:40 +00:00
files/drivers
image ramips: add support for TP-Link MR6400 v4 2020-11-23 00:46:40 +00:00
mt76x8 ramips: add support for TP-Link MR6400 v4 2020-11-23 00:46:40 +00:00
mt7620
mt7621
patches-5.4 ramips: phy: at803x: Select SFP interface mode that both sides supports. 2020-11-23 22:53:15 +01:00
rt288x
rt305x
rt3883
Makefile
modules.mk