Skip to content

mtd: kill the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE

Huang Shijie linux-arm-kernel linux-mtd 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mtd: mxc-nand: kill the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZEdrivers/mtd/nand/mxc_nand.c+15 -30 replies
2/4mtd: denali: kill the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZEdrivers/mtd/nand/denali.c drivers/mtd/nand/denali.h+31 -240 replies
3/4mtd: nand: kill the the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE for nand_buffers{}drivers/mtd/nand/cafe_nand.c drivers/mtd/nand/nand_base.c include/linux/mtd/nand.h+57 -235 replies
4/4mtd: nand: remove the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZEinclude/linux/mtd/nand.h+0 -81 reply

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosh Triplett
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] mtd: kill the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE

[1] Why kill them?
As time goes on, the NAND's page size and oob size become larger and larger. So we have changes these two macros frequently in order to support the new NAND.

[2] How does this patch set do?
There are three drivers which uses these two macros, the mxc-nand, denali, and the cafe-nand.

This patch will allocate a temporary buffer for the nand_scan_ident, and after it have getten the right page size and oob size, it will re-allocate the buffer again.

[3] I do not have the boards which have the relative NAND controller.

I hope someone can test this patch set.

thanks.

Huang Shijie (4):
mtd: mxc-nand: kill the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE
mtd: denali: kill the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE
mtd: nand: kill the the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE for

    nand_buffers{}

mtd: nand: remove the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE

 drivers/mtd/nand/cafe_nand.c | 49 +++++++++++++++++++++++++++++++-----------
 drivers/mtd/nand/denali.c    | 51 ++++++++++++++++++++++++++------------------
 drivers/mtd/nand/denali.h    |  4 +---
 drivers/mtd/nand/mxc_nand.c  | 18 +++++++++++++---
 drivers/mtd/nand/nand_base.c | 19 +++++++++++++----
 include/linux/mtd/nand.h     | 20 ++++++-----------
 6 files changed, 103 insertions(+), 58 deletions(-)
Signature · 1 line
1.8.3.1