]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net/sonic: Quiesce SONIC before re-initializing descriptor memory
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 22 Jan 2020 22:07:26 +0000 (09:07 +1100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:28:32 +0000 (16:28 +0100)
commitce4bea5189faf3bfd159e99bede6584a65a766a2
tree2b066e78ad934328aa2346f49d27e5f4a41f0dd5
parentcf7c301a7c08ff3cb2dba46df01b504590ffa31a
net/sonic: Quiesce SONIC before re-initializing descriptor memory

BugLink: https://bugs.launchpad.net/bugs/1861385
commit 3f4b7e6a2be982fd8820a2b54d46dd9c351db899 upstream.

Make sure the SONIC's DMA engine is idle before altering the transmit
and receive descriptors. Add a helper for this as it will be needed
again.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/natsemi/sonic.c
drivers/net/ethernet/natsemi/sonic.h