swiotlb-xen: call xen_dma_sync_single_for_device when appropriate
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 21 Nov 2014 16:55:12 +0000 (16:55 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 4 Dec 2014 12:41:56 +0000 (12:41 +0000)
commit9490c6c67e2f41760de8ece4e4f56f75f84ceb9e
tree502e3ae4773a8986fdd8eef4ddcbabafe6dd69be
parentc884227eaae9936f8ecbde6e1387bccdab5f4e90
swiotlb-xen: call xen_dma_sync_single_for_device when appropriate

In xen_swiotlb_sync_single we always call xen_dma_sync_single_for_cpu,
even when we should call xen_dma_sync_single_for_device. Fix that.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: stable@vger.kernel.org
drivers/xen/swiotlb-xen.c