]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb-xen: simplify the DMA sync method implementations
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Apr 2019 07:19:59 +0000 (09:19 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 2 May 2019 23:51:47 +0000 (19:51 -0400)
commit0664f83489db71a2cffef5be2d0f1181fbfd547f
treeb19dd8bb8c250b2bf0439952dac3ee95a292e8b4
parent1c22b8328c8b741e12b4f48cf87e6cf7121899cd
swiotlb-xen: simplify the DMA sync method implementations

Get rid of the grand multiplexer and implement the sync_single_for_cpu
and sync_single_for_device methods directly, and then loop over them
for the scatterlist based variants.

Note that this also loses a few comments related to highlevel DMA API
concepts, which have nothing to do with the swiotlb-xen implementation
details.

Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c