aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-03-30 17:15:04 +0900
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-04-25 14:18:37 +0200
commit3deb9979c7319bc7846d1aac528a9db85162960a (patch)
tree461a23ff5a0761e5940c3b6db229bd85f5dc1082 /include/linux/mtd/nand.h
parentmtd: nand: denali: allow to override revision number (diff)
downloadlinux-dev-3deb9979c7319bc7846d1aac528a9db85162960a.tar.xz
linux-dev-3deb9979c7319bc7846d1aac528a9db85162960a.zip
mtd: nand: allocate aligned buffers if NAND_OWN_BUFFERS is unset
Some NAND controllers are using DMA engine requiring a specific buffer alignment. The core provides no guarantee on the nand_buffers pointers, which forces some drivers to allocate their own buffers and pass the NAND_OWN_BUFFERS flag. Rework the nand_buffers allocation logic to allocate each buffer independently. This should make most NAND controllers/DMA engine happy, and allow us to get rid of these custom buf allocation in NAND controller drivers. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions