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)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Apr 2021 10:06:27 +0000 (12:06 +0200)
commitd9b3edef4d84df70a62795cbad2012acc2ee6cab
treed645809b34e70c7d43460ae7f6c6fdf28779c352
parent209f2386a57d19eae9d7d5daa192d2f81c3a9202
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>
(cherry picked from commit 785d830e889ba18793acf369e447d704269169af)
target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/dsa.c