]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Don't modify RGMII delays when not RGMII mode
authorAndrew Lunn <andrew@lunn.ch>
Thu, 10 Nov 2016 14:44:00 +0000 (15:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2016 03:36:35 +0000 (22:36 -0500)
commit63e1d46c6ddae32cdf10f5ea8eaa7c743cfa1b13
treedd60ae39c4245ad342ae547e6290396666d4e14f
parent45cfb58f853218d5f3e39c8f0fa44cb53090589f
net: dsa: mv88e6xxx: Don't modify RGMII delays when not RGMII mode

The RGMII modes delays can be set via strapping pings or EEPROM.
Don't change them unless explicitly asked to change them.  The recent
refactoring of setting the MAC configuration changed this behaviours,
in that CPU and DSA ports have any pre-configured RGMII delays
removed. This breaks the Armada 370RD board. Restore the previous
behaviour, in that RGMII delays are only applied/removed when
explicitly asked for via an phy-mode being PHY_INTERFACE_MODE_RGMII*

Fixes: 7340e5ecdbb1 ("net: dsa: mv88e6xxx: setup port's MAC")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/port.c