]> git.baikalelectronics.ru Git - kernel.git/commit
vmd: use the proper dma_* APIs instead of direct methods calls
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 21:37:00 +0000 (13:37 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 20:06:17 +0000 (21:06 +0100)
commitd421f348c41437a11de49a0b835dede4afed2fd6
treee0525720a7592d59a5875495d345f005af0d42b3
parent601f7fb0b0b12f670ee19cec84ed28d946da8989
vmd: use the proper dma_* APIs instead of direct methods calls

With the bypass support for the direct mapping we might not always have
methods to call, so use the proper APIs instead.  The only downside is
that we will create two dma-debug entries for each mapping if
CONFIG_DMA_DEBUG is enabled.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Tony Luck <tony.luck@intel.com>
drivers/pci/controller/vmd.c