Skip to content

nandwrite: clean out old ioctls

Brian Norris linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10mtd_debug: fixup stylemtd_debug.c+160 -1830 replies
2/10mtd_debug: replace #defines with enummtd_debug.c+8 -60 replies
3/10mtd-utils: use __func__ instead of __FUNCTION__mtd_debug.c tests/ubi-tests/common.c+13 -130 replies
4/10nandwrite: remove C99 comment stylenandwrite.c+13 -110 replies
5/10nandwrite: remove `autoplace' featuresnandwrite.c+9 -340 replies
6/10nandwrite: kill more MEMSETOOBSELnandwrite.c+1 -250 replies
7/10nandwrite: kill -j, -y, and -f optionsnandwrite.c+1 -590 replies
8/10nandwrite: cleanup "oobinfochanged" leftoversnandwrite.c+4 -90 replies
9/10nandwrite: refactor "old_oobinfo" codenandwrite.c+3 -70 replies
10/10nanddump: kill usages of MEMSETOOBSEL ioctlnanddump.c+3 -402 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: clean out old ioctls

Hello,

This series cleans up some coding style, but it primarily deals with several options to nandwrite that have rotted. Mostly, this deals with MEMSETOOBSEL, which hasn't existed since kernel 2.6.17 - see commit:

[MTD] NAND Consolidate oobinfo handling
Sat May 27 20:36:12 2006 +0200
commit ff268fb8791cf18df536113355d7184007c269d9

For reference, MEMSETOOBSEL was "replaced" with MTDFILEMODE in the same kernel release:

[MTD] NAND Expose the new raw mode function and status info to userspace Tue May 30 00:37:34 2006 +0200
commit f1a28c02843efcfcc41982149880bac3ac180234

Several features depended (in part or entirely) on the MEMSETOOBSEL
ioctl: the -j, -y, and -a options to nandwrite and by extension the -f (--forcelegacy) option which handled special cases for -j and -y. There are also pieces of nanddump that relied on this behavior as a backup. We just remove them, since they have been useless for over 5 years.

There shouldn't be any actual loss of functionality in these patches so far (at least, not very much); let me know if there's something critical I'm missing.

On the other hand, there is plenty of value in these edits, since it leaves room for more rennovation and addition of newer, better kernel interfaces for writing data and changing OOB modes.

Brian

Brian Norris (10):
mtd_debug: fixup style
mtd_debug: replace #defines with enum
mtd-utils: use __func__ instead of __FUNCTION__
nandwrite: remove C99 comment style
nandwrite: remove `autoplace' features
nandwrite: kill more MEMSETOOBSEL
nandwrite: kill -j, -y, and -f options
nandwrite: cleanup "oobinfochanged" leftovers
nandwrite: refactor "old_oobinfo" code
nanddump: kill usages of MEMSETOOBSEL ioctl

 mtd_debug.c              |  355 ++++++++++++++++++++++------------------------
 nanddump.c               |   43 +-----
 nandwrite.c              |  174 ++++-------------------
 tests/ubi-tests/common.c |   10 +-
 4 files changed, 205 insertions(+), 377 deletions(-)
Signature · 1 line
1.7.6