au1200fb: don't use DMA_ATTR_NON_CONSISTENT
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2019 12:13:21 +0000 (14:13 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 23 Jul 2019 15:14:55 +0000 (17:14 +0200)
commit5ae01cba59c63e042080ebccf2bd3406288beaa6
tree5fed2bebe824e069a1aed8a6730d7c41a72845ca
parenta74cefd915124a16a2956773c30addc58e344047
au1200fb: don't use DMA_ATTR_NON_CONSISTENT

au1200fb allocates DMA memory using DMA_ATTR_NON_CONSISTENT, but never
calls dma_cache_sync to synchronize the memory between the CPU and the
device.  If it was use on a not cache coherent bus that would be fatal,
but as far as I can tell from the naming and the mips platform
implementation it always is used in cache coherent systems.  Remove
the DMA_ATTR_NON_CONSISTENT flag, which is a no-op in that case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190625121321.10197-1-hch@lst.de
drivers/video/fbdev/au1200fb.c