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 785d830e88)
This commit is contained in:
committed by
Hauke Mehrtens
parent
209f2386a5
commit
d9b3edef4d
@@ -245,6 +245,7 @@ static void rtl83xx_phylink_validate(struct dsa_switch *ds, int port,
|
|||||||
pr_debug("In %s port %d", __func__, port);
|
pr_debug("In %s port %d", __func__, port);
|
||||||
|
|
||||||
if (!phy_interface_mode_is_rgmii(state->interface) &&
|
if (!phy_interface_mode_is_rgmii(state->interface) &&
|
||||||
|
state->interface != PHY_INTERFACE_MODE_NA &&
|
||||||
state->interface != PHY_INTERFACE_MODE_1000BASEX &&
|
state->interface != PHY_INTERFACE_MODE_1000BASEX &&
|
||||||
state->interface != PHY_INTERFACE_MODE_MII &&
|
state->interface != PHY_INTERFACE_MODE_MII &&
|
||||||
state->interface != PHY_INTERFACE_MODE_REVMII &&
|
state->interface != PHY_INTERFACE_MODE_REVMII &&
|
||||||
|
|||||||
Reference in New Issue
Block a user