realtek: need to handle PHY_INTERFACE_MODE_NA for sfps
authorBjørn Mork <bjorn@mork.no>
Sat, 13 Mar 2021 16:45:50 +0000 (17:45 +0100)
committerPetr Štetiar <ynezz@true.cz>
Wed, 17 Mar 2021 09:01:21 +0000 (10:01 +0100)
commit785d830e889ba18793acf369e447d704269169af
tree2169b3dd3429aeb8d3ea43e6c0c9afadb6632e93
parentb8e473d18c6af2abf0d047247fdbe6d178228ac0
realtek: need to handle PHY_INTERFACE_MODE_NA for sfps

From the validate docs in include/linux/phylink.h:

 When state->interface is PHY_INTERFACE_MODE_NA, phylink expects the
 MAC driver to return all supported link modes.

Tested-by: Birger Koblitz <mail@birger-koblitz.de>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/dsa.c