]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: set Rx mode before starting netif
authorDoug Berger <opendmb@gmail.com>
Wed, 29 Apr 2020 20:02:00 +0000 (13:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Apr 2020 23:55:21 +0000 (16:55 -0700)
commit5a3b50b6fa615a4b8128ff58fa7cc05091649775
tree7a894de063a430727cceb88a720d28734ab83bba
parentfaa3a335bc1a96167b0ff46b9e6ec5338c1b2c59
net: bcmgenet: set Rx mode before starting netif

This commit explicitly calls the bcmgenet_set_rx_mode() function when
the network interface is started. This function is normally called by
ndo_set_rx_mode when the flags are changed, but apparently not when
the driver is suspended and resumed.

This change ensures that address filtering or promiscuous mode are
properly restored by the driver after the MAC may have been reset.

Fixes: 76d4a46344ce ("net: bcmgenet: add suspend/resume callbacks")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c