]> git.baikalelectronics.ru Git - kernel.git/commit
crypto4xx_core: don't abuse __dma_sync_page
authorChristoph Hellwig <hch@lst.de>
Sun, 16 Dec 2018 17:19:46 +0000 (18:19 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Dec 2018 11:21:20 +0000 (22:21 +1100)
commite0aac7222e2689658f0bfc031ecff33f8d18d892
tree96706be2b7fc412bf43735b626636027b6eb5f16
parent5cecd3bc61f109c9fadcddd6355f90fcbd56cd05
crypto4xx_core: don't abuse __dma_sync_page

This function is internal to the DMA API implementation. Instead use
the DMA API to properly unmap. Note that the DMA API usage in this
driver is a disaster and urgently needs some work - it is missing all
the unmaps, seems to do a secondary map where it looks like it should
to a unmap in one place to work around cache coherency and the
directions passed in seem to be partially wrong.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/crypto/amcc/crypto4xx_core.c