]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: reset the MACs when reconfiguring a port
authorAntoine Tenart <antoine.tenart@bootlin.com>
Fri, 1 Mar 2019 10:52:15 +0000 (11:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 07:23:35 +0000 (23:23 -0800)
commitc961060704e7a0cba5e38d0a3fead13b3ae524f8
tree2ee34912acae0c1a5a89239348a2dc94a7c61ea3
parentf1674c3b854c7b51b987b2e0086285bbecb08f74
net: mvpp2: reset the MACs when reconfiguring a port

This patch makes sure both PPv2 MACs (GMAC + XLG MAC) are set in reset
while a port is reconfigured. This is done so that we make sure a MAC is
in a reset state when not used, as only one of the two will be set out
of reset after the port is configured properly.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c