net: bcmgenet: rework bcmgenet_netif_start and bcmgenet_netif_stop
authorDoug Berger <opendmb@gmail.com>
Wed, 25 Oct 2017 22:04:16 +0000 (15:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Oct 2017 01:14:54 +0000 (10:14 +0900)
commitd215dbac48ab9e77c680fcd28863ccc227a5657e
treef8b1049adb32d3cdaa284fd92f9b72c371334fb0
parentfbf557d9d1bf93892db70121061c81aaded41607
net: bcmgenet: rework bcmgenet_netif_start and bcmgenet_netif_stop

This commit consolidates more common functionality from
bcmgenet_close and bcmgenet_suspend into bcmgenet_netif_stop and
modifies the start and stop sequences to better suit the design
of the GENET hardware.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c