lib82596: convert to dma_alloc_noncoherent
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Sep 2020 11:24:11 +0000 (13:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Sep 2020 04:20:45 +0000 (06:20 +0200)
commit00718b23a4730c5b155fa6f1deba532c921470c8
tree85a89775d686c20ebb5f36e59903e2922ba6fa11
parented4bc1890b4984d0af447ad3cc1f93541623f8f3
lib82596: convert to dma_alloc_noncoherent

Use the new non-coherent DMA API including proper ownership transfers.
This includes moving the DMA helpers to lib82596 based of an ifdef to
avoid include order problems.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> (SNI part)
drivers/net/ethernet/i825xx/lasi_82596.c
drivers/net/ethernet/i825xx/lib82596.c
drivers/net/ethernet/i825xx/sni_82596.c