]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: remove netif_carrier_off from adjust_link
authorDoug Berger <opendmb@gmail.com>
Sun, 26 Sep 2021 03:21:11 +0000 (20:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 15:34:51 +0000 (16:34 +0100)
commita0ee76ad41b15878502f862bad4653e166da9deb
tree20a996edf2374ecbc9823e012e3a2ddca3622a47
parentf93cfc25a13d3cb0a7450a870b5fb12f225d44b7
net: bcmgenet: remove netif_carrier_off from adjust_link

The bcmgenet_mii_setup() function is registered as the adjust_link
callback from the phylib for the GENET driver.

The phylib always sets the netif_carrier according to phydev->link
prior to invoking the adjust_link callback, so there is no need to
repeat that in the link down case within the network driver.

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