]> git.baikalelectronics.ru Git - kernel.git/commit
au1200fb: fix DMA API abuse
authorChristoph Hellwig <hch@lst.de>
Fri, 7 Jun 2019 12:38:06 +0000 (14:38 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 7 Jun 2019 12:38:06 +0000 (14:38 +0200)
commitca3d441b210785982a4c6a532989979d81dfebb2
treee33100afd7f82d3ff9e89717e35423e0dcebcba1
parentbba18c5f5ac191004f62d306fac6f6169ec3e353
au1200fb: fix DMA API abuse

Virtual addresses return from dma(m)_alloc_attrs are opaque in what
backs then, and drivers must not poke into them.  Similarly caching
modes are not supposed to be directly set by the driver.  Switch the
driver to use the generic DMA API mmap helper to avoid these problems.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/au1200fb.c