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 ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: add support for TP-Link MR6400 v4 2020-11-23 00:46:40 +00:00
files/drivers ramips: drop kernel version switches 2020-10-09 22:24:04 +02:00
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 ramips: add support for Wavlink WL-WN530HG4 2020-10-27 21:20:16 +01:00
mt7621 ramips: mt7621: fix Telco X1 GPIO switches 2020-11-16 13:43:39 +01:00
patches-5.4 ramips: phy: at803x: Select SFP interface mode that both sides supports. 2020-11-23 22:53:15 +01:00
rt288x ramips: remove set_wifi_led function in 01_leds 2020-10-02 14:51:57 +02:00
rt305x ramips: remove set_wifi_led function in 01_leds 2020-10-02 14:51:57 +02:00
rt3883 ramips: remove set_wifi_led function in 01_leds 2020-10-02 14:51:57 +02: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 2020-10-09 22:24:04 +02:00