]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: denali: skip driver internal bounce buffer when possible
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 13 Jun 2017 13:45:47 +0000 (22:45 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 20 Jun 2017 07:14:51 +0000 (09:14 +0200)
commit997cde2a222091270ce0c276e567b68e5615f577
treebf38d67224db2545d4faced7b826ce117b4072ec
parent57a4d8b5f6482718f17c08f2cdfea085b1d3c12a
mtd: nand: denali: skip driver internal bounce buffer when possible

For ecc->read_page() and ecc->write_page(), it is possible to call
dma_map_single() against the given buffer.  This bypasses the driver
internal bounce buffer and save the memcpy().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c