MIPS/jazzdma: return error code from jazz_dma_map_sg()
authorMartin Oliveira <martin.oliveira@eideticom.com>
Thu, 29 Jul 2021 20:15:27 +0000 (14:15 -0600)
committerChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 15:13:05 +0000 (17:13 +0200)
commitaf82fe85665d49bdb72dba66cd57e3bf95b71895
tree74ad12a68bf9ad30d45591257fae8c5ed678b310
parent62af5ca50c29a9be266656dfb88db6d439d129a1
MIPS/jazzdma: return error code from jazz_dma_map_sg()

The .map_sg() op now expects an error code instead of zero on failure.

vdma_alloc() may fail for different reasons, but since it only supports
indicating an error via a return of DMA_MAPPING_ERROR, we coalesce the
different reasons into -EIO as is documented on dma_map_sgtable().

Signed-off-by: Martin Oliveira <martin.oliveira@eideticom.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/mips/jazz/jazzdma.c