]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: am65-cpsw-nuss: Use DMA device for DMA API
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 15 Jan 2021 19:28:50 +0000 (21:28 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Jan 2021 01:32:34 +0000 (17:32 -0800)
commit7da8c1a03f98b2d7b2d9bd521a502f7d3a999ef0
tree929e1f6c528769091ea20df9d85ca1dbe0eaa09d
parent0066ac3958a50f41442cde64409e4f2af22ae999
net: ethernet: ti: am65-cpsw-nuss: Use DMA device for DMA API

For DMA API the DMA device should be used as cpsw does not accesses to
descriptors or data buffers in any ways. The DMA does.

Also, drop dma_coerce_mask_and_coherent() setting on CPSW device, as it
should be done by DMA driver which does data movement.

This is required for adding AM64x CPSW3g support where DMA coherency
supported per DMA channel.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Co-developed-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c
drivers/net/ethernet/ti/am65-cpsw-nuss.h