OSDN Git Service

powerpc: implement ->mapping_error
authorChristoph Hellwig <hch@lst.de>
Sun, 21 May 2017 12:17:10 +0000 (14:17 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2017 13:54:33 +0000 (06:54 -0700)
commit6009faa43f804c99b3d8fff94fa1e0692be70358
tree05168471d1bc2b5d056a7e77bdc1bfd8ff844eb2
parentceaf481c4f6ae6090288528825abc7d051bb1032
powerpc: implement ->mapping_error

DMA_ERROR_CODE is going to go away, so don't rely on it.  Instead
define a ->mapping_error method for all IOMMU based dma operation
instances.  The direct ops don't ever return an error and don't
need a ->mapping_error method.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/dma-mapping.h
arch/powerpc/include/asm/iommu.h
arch/powerpc/kernel/dma-iommu.c
arch/powerpc/kernel/iommu.c
arch/powerpc/platforms/cell/iommu.c
arch/powerpc/platforms/pseries/vio.c