aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorHuang Shijie <[email protected]>2014-01-13 06:27:12 +0000
committerBrian Norris <[email protected]>2014-03-11 05:42:22 +0000
commitf02ea4e6a47d50a38f5baadbe87f5087dd337db0 (patch)
tree512c46fb2f1761c456cb5eedf02e06d57f50fb63 /drivers/mtd/lpddr/lpddr_cmds.c
parentmtd: delete non-required instances of include <linux/init.h> (diff)
downloadkernel-f02ea4e6a47d50a38f5baadbe87f5087dd337db0.tar.gz
kernel-f02ea4e6a47d50a38f5baadbe87f5087dd337db0.zip
mtd: nand: kill the the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE for nand_buffers{}
The patch converts the arrays to buffer pointers for nand_buffers{}. The cafe_nand.c is the only NAND_OWN_BUFFERS user which allocates nand_buffers{} itself. This patch disables the DMA for nand_scan_ident, and restores the DMA status after we finish the nand_scan_ident. This way, we can get page size and OOB size and use them to allocate cafe->dmabuf. Since the cafe_nand.c uses the NAND_ECC_HW_SYNDROME ECC mode, we do not allocate the buffers for @ecccalc and @ecccode. Signed-off-by: Huang Shijie <[email protected]> Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions