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>
BUG=chrome-os-partner:35643
TEST=Build for purin with MTD config enabled
(cherry picked from commit 66507c7bc8)
Signed-off-by: Anatol Pomazau <anatol@chromium.org>
Change-Id: I263d8d07bb8266d39c6eaf91885a14922e4e8cc4
Reviewed-on: https://chromium-review.googlesource.com/260620
Trybot-Ready: Anatol Pomazau <anatol@google.com>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Daniel Ehrenberg <dehrenberg@chromium.org>
Reviewed-by: Anatol Pomazau <anatol@google.com>
Commit-Queue: Anatol Pomazau <anatol@google.com>
Tested-by: Anatol Pomazau <anatol@google.com>