Skip to content

Commit

Permalink
net: mvpp2: set the GMAC, XLG MAC, XPCS and MPCS in reset when a port…
Browse files Browse the repository at this point in the history
… is down

This patch adds calls in the stop() helper to ensure both MACs and
both PCS blocks are set in reset when the user manually sets a port
down. This is done so that we have the exact same block reset states at
boot time and when a port is set down.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Antoine Tenart authored and David S. Miller committed Mar 2, 2019
1 parent 7409e66 commit 1f69afc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3525,6 +3525,9 @@ static int mvpp2_stop(struct net_device *dev)

cancel_delayed_work_sync(&port->stats_work);

mvpp2_mac_reset_assert(port);
mvpp22_pcs_reset_assert(port);

return 0;
}

Expand Down

0 comments on commit 1f69afc

Please sign in to comment.