summaryrefslogtreecommitdiff
path: root/drivers/net/bonding
diff options
context:
space:
mode:
authorMasahisa KOJIMA <masahisa.kojima@linaro.org>2018-04-16 10:39:59 +0300
committerDavid S. Miller <davem@davemloft.net>2018-04-16 20:46:38 +0300
commit9a00b697ce31e38c670a3042cf9f1e9cf28dabb5 (patch)
treef9cabf09947f1972b6584034deff67bc0d8b0b96 /drivers/net/bonding
parentc009f413b79de526a355b6eefa4f900b6c45d5f4 (diff)
downloadlinux-9a00b697ce31e38c670a3042cf9f1e9cf28dabb5.tar.xz
net: socionext: reset hardware in ndo_stop
When the interface is down, head/tail of the descriptor ring address is set to 0 in netsec_netdev_stop(). But netsec hardware still keeps the previous descriptor ring address, so there is inconsistency between driver and hardware after interface is up at a later time. To address this inconsistency, add netsec_reset_hardware() when the interface is down. In addition, to minimize the reset process, add flag to decide whether driver loads the netsec microcode. Even if driver resets the netsec hardware, netsec microcode keeps resident on RAM, so it is ok we only load the microcode at initialization. This patch is critical for installation over network. Signed-off-by: Masahisa KOJIMA <masahisa.kojima@linaro.org> Fixes: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver") Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
0 files changed, 0 insertions, 0 deletions