summaryrefslogtreecommitdiffstats
path: root/kernel/net/dsa
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/dsa')
-rw-r--r--kernel/net/dsa/slave.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/net/dsa/slave.c b/kernel/net/dsa/slave.c
index 827cda560..57978c5b2 100644
--- a/kernel/net/dsa/slave.c
+++ b/kernel/net/dsa/slave.c
@@ -732,7 +732,8 @@ static int dsa_slave_phy_connect(struct dsa_slave_priv *p,
return -ENODEV;
/* Use already configured phy mode */
- p->phy_interface = p->phy->interface;
+ if (p->phy_interface == PHY_INTERFACE_MODE_NA)
+ p->phy_interface = p->phy->interface;
phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link,
p->phy_interface);