misc: pci_endpoint_test: Use streaming DMA APIs for buffer allocation
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 16 Mar 2020 11:24:22 +0000 (16:54 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 2 Apr 2020 16:57:10 +0000 (17:57 +0100)
commit0a121f9bc3f55b83b2c62f6d6fa8e3125e81964e
tree82cde1af11188d6d31d0e4eaa7cd6c4c8ed56a9f
parent5893c2e5353bb9a723d862d8b6ba8028a8f6a6eb
misc: pci_endpoint_test: Use streaming DMA APIs for buffer allocation

Use streaming DMA APIs (dma_map_single/dma_unmap_single) for buffers
transmitted/received by the endpoint device instead of allocating
a coherent memory. Also add default_data to set the alignment to
4KB since dma_map_single might not return a 4KB aligned address.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Alan Mikhak <alan.mikhak@sifive.com>
drivers/misc/pci_endpoint_test.c