]> git.baikalelectronics.ru Git - kernel.git/commit
net: axienet: Cleanup DMA device reset and halt process
authorRobert Hancock <hancock@sedsystems.ca>
Thu, 6 Jun 2019 22:28:12 +0000 (16:28 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 23:24:29 +0000 (16:24 -0700)
commita6699294bf7dfab6c68bc7b9b0d8157ecf160593
tree40a79f3728e64a07e9092f76414a756690bcd0f8
parentdfc1b9015706a2d2326ca975bc75c9fd5faa7a4b
net: axienet: Cleanup DMA device reset and halt process

The Xilinx DMA blocks each have their own reset register, but they both
reset the entire DMA engine, so only one of them needs to be reset.

Also, when stopping the device, we need to not just command the DMA
blocks to stop, but wait for them to stop, and trigger a device reset
to ensure that they are completely stopped.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c