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)
commited569ed9b30a748f4e5601041a999a537bb5e736
tree929e1f6c528769091ea20df9d85ca1dbe0eaa09d
parent19d9a846d9fcdfd30b1500339e09ec8dc898feea
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