All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/10] nandwrite: cleanup, support ioctl(MEMWRITE)
@ 2011-08-31 20:00 Brian Norris
  2011-08-31 20:00 ` [PATCH 01/10] nandwrite: trivial variable move Brian Norris
                   ` (11 more replies)
  0 siblings, 12 replies; 20+ messages in thread
From: Brian Norris @ 2011-08-31 20:00 UTC (permalink / raw)
  To: Artem Bityutskiy; +Cc: b35362, Brian Norris, linux-mtd, Mike Frysinger

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(-)

-- 
1.7.5.4

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2011-09-19 18:50 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-31 20:00 [PATCH 00/10] nandwrite: cleanup, support ioctl(MEMWRITE) Brian Norris
2011-08-31 20:00 ` [PATCH 01/10] nandwrite: trivial variable move Brian Norris
2011-09-11 13:00   ` Artem Bityutskiy
2011-08-31 20:00 ` [PATCH 02/10] mtd-utils: update mtd-abi.h Brian Norris
2011-09-09 17:11   ` [PATCH v2 " Brian Norris
2011-08-31 20:00 ` [PATCH 03/10] nandwrite: consolidate buffer usage Brian Norris
2011-09-11 13:07   ` Artem Bityutskiy
2011-09-14  5:15   ` Mike Frysinger
2011-09-14 18:22     ` Brian Norris
2011-09-18  2:53       ` Mike Frysinger
2011-09-19 18:50         ` Brian Norris
2011-08-31 20:00 ` [PATCH 04/10] libmtd: modify `mtd_write' to cover OOB writes Brian Norris
2011-08-31 20:00 ` [PATCH 05/10] libmtd: support MEMWRITE ioctl Brian Norris
2011-08-31 20:00 ` [PATCH 06/10] nandwrite: merge `mtd_write_oob' and `mtd_write' calls Brian Norris
2011-08-31 20:00 ` [PATCH 07/10] mtdutils: move OOB auto-layout into libmtd's mtd_write Brian Norris
2011-08-31 20:00 ` [PATCH 08/10] nandwrite: kill `--raw' option Brian Norris
2011-08-31 20:00 ` [PATCH 09/10] nandwrite: re-implement `--autoplace' option Brian Norris
2011-08-31 20:00 ` [PATCH 10/10] nandwrite: use common.h "errmsg" functions Brian Norris
2011-09-11 13:06 ` [PATCH 00/10] nandwrite: cleanup, support ioctl(MEMWRITE) Artem Bityutskiy
2011-09-14  5:17 ` Mike Frysinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.