]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Configure MAC when using fixed link
authorAndrew Lunn <andrew@lunn.ch>
Tue, 14 Apr 2020 00:34:38 +0000 (02:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2020 23:33:25 +0000 (16:33 -0700)
commitc2558b0d73ed2bc9771d2fb42d97b9a07b279c55
tree5b35c8ebf492e31bc7c663e2a110718a1f76b5a0
parent5b6bf15e86d844b1727d5c41322339ced95ead5a
net: dsa: mv88e6xxx: Configure MAC when using fixed link

The 88e6185 is reporting it has detected a PHY, when a port is
connected to an SFP. As a result, the fixed-phy configuration is not
being applied. That then breaks packet transfer, since the port is
reported as being down.

Add additional conditions to check the interface mode, and if it is
fixed always configure the port on link up/down, independent of the
PPU status.

Fixes: db00c73138b3 ("net: mv88e6xxx: use resolved link config in mac_link_up()")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c