]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: onenand: omap2: Disable DMA for HIGHMEM buffers
authorLadislav Michl <ladis@linux-mips.org>
Wed, 2 May 2018 10:41:32 +0000 (12:41 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 2 May 2018 13:17:18 +0000 (15:17 +0200)
commita10c9834e5df15f9ea241873011c3fc1e117d0c4
tree628fd72e2b4ea3398cb71ef87e9bdd1a4c8da4e1
parent8fdf222feba61c86a5a1d628a7df50de1e510fc4
mtd: onenand: omap2: Disable DMA for HIGHMEM buffers

dma_map_single does not work for vmalloc-ed buffers,
so disable DMA in this case.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Reported-by: "H. Nikolaus Schaller" <hns@goldelico.com>
Tested-by: "H. Nikolaus Schaller" <hns@goldelico.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/onenand/omap2.c