]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: Ensure all TX/RX queues DMAs are disabled
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 9 Jul 2021 01:55:32 +0000 (18:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jul 2021 02:35:59 +0000 (19:35 -0700)
commitc84a4644a1fd93d3fa5bee5608a9a761832c6e4e
tree423c8aab16180be02a5d60822ee3356d2748155b
parent098cacc51e14a98595335822a5d9c972d26185da
net: bcmgenet: Ensure all TX/RX queues DMAs are disabled

Make sure that we disable each of the TX and RX queues in the TDMA and
RDMA control registers. This is a correctness change to be symmetrical
with the code that enables the TX and RX queues.

Tested-by: Maxime Ripard <maxime@cerno.tech>
Fixes: 83c070ed8c89 ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c