Skip to content

nandwrite: cleanup, support ioctl(MEMWRITE)

Brian Norris linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10nandwrite: trivial variable movenandwrite.c+2 -21 reply
2/10mtd-utils: update mtd-abi.hinclude/mtd/mtd-abi.h nanddump.c nandwrite.c+107 -191 reply
3/10nandwrite: consolidate buffer usagenandwrite.c+3 -25 replies
4/10libmtd: modify `mtd_write' to cover OOB writesinclude/libmtd.h lib/libmtd.c nandwrite.c +1 more+23 -120 replies
5/10libmtd: support MEMWRITE ioctllib/libmtd.c+31 -80 replies
6/10nandwrite: merge `mtd_write_oob' and `mtd_write' callsnandwrite.c+9 -90 replies
7/10mtdutils: move OOB auto-layout into libmtd's mtd_writelib/libmtd.c nandwrite.c+43 -490 replies
8/10nandwrite: kill `--raw' optionnandwrite.c+1 -80 replies
9/10nandwrite: re-implement `--autoplace' optionnandwrite.c+20 -20 replies
10/10nandwrite: use common.h "errmsg" functionsnandwrite.c+16 -280 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] nandwrite: cleanup, support ioctl(MEMWRITE)

This patch series cleans up old features in nandwrite and supports new features with ioctl(MEMWRITE).

Byproducts of this include:
(1) kill --raw
(2) re-implement --autoplace
(3) support OOB writes for MLC NAND (only write once per page)

(1) is done because it's difficult to really tell the reason for --raw in the first place. Thus, in restructuring mtd_write and nandwrite, I cannot support it. I don't think anyone will miss it.
(2) is done just because we can. Previously, support for the autoplace OOB layout was spotty, depended on the obsolete ioctl(MEMGETOOBSEL), and utilized user-space code to imitate an internal kernel interface. Old code can be supported with little impact by pushing it to a "legacy" function and supporting autoplacement primarily by way of the new ioctl(MEMWRITE).
(3) was kind of the end goal for introducing ioctl(MEMWRITE). We needed a user interface that could write data+OOB in a single operation.

Brian

Brian Norris (10):
nandwrite: trivial variable move
mtd-utils: update mtd-abi.h
nandwrite: consolidate buffer usage
libmtd: modify `mtd_write' to cover OOB writes
libmtd: support MEMWRITE ioctl
nandwrite: merge mtd_write_oob' and mtd_write' calls
mtdutils: move OOB auto-layout into libmtd's mtd_write
nandwrite: kill `--raw' option
nandwrite: re-implement `--autoplace' option
nandwrite: use common.h "errmsg" functions

 include/libmtd.h      |   15 ++++--
 include/mtd/mtd-abi.h |  122 ++++++++++++++++++++++++++++++++++++------
 lib/libmtd.c          |   86 ++++++++++++++++++++++++++----
 nanddump.c            |    2 +-
 nandwrite.c           |  143 +++++++++++++++++--------------------------------
 ubi-utils/ubiformat.c |    6 ++-
 6 files changed, 245 insertions(+), 129 deletions(-)
Signature · 1 line
1.7.5.4