]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: Add support to use nand_base poi databuf as bounce buffer
authorKamal Dasu <kdasu.kdev@gmail.com>
Fri, 2 May 2014 00:51:19 +0000 (20:51 -0400)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 20 May 2014 23:35:32 +0000 (16:35 -0700)
commitbc39a1c14895b078feee660d3425ed5bc7832992
treea011e33764deec5b848280f3f2ed386f60967929
parentbd9cb0606c6575a55dad12a656cbae56ca049061
mtd: nand: Add support to use nand_base poi databuf as bounce buffer

nand_base can be passed a kmap()'d buffers from highmem by
filesystems like jffs2. This results in failure to map the
physical address of the DMA buffer on various contoller
driver on different platforms. This change adds a chip option
to use preallocated databuf as bounce buffers used in
nand_do_read_ops() and nand_do_write_ops().
This allows for specific nand controller driver to set this
option as needed.

Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h