]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f6c650277c8fc3e787d677ec5639fef6fce4adb
tree502e3ae4773a8986fdd8eef4ddcbabafe6dd69be
parent3c3da34c331ccbb62754166387fa22cf8246ca19
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