]> www.infradead.org Git - mtd-utils.git/commit
nandwrite: remove `autoplace' features
authorBrian Norris <computersforpeace@gmail.com>
Fri, 19 Aug 2011 17:07:51 +0000 (10:07 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 23 Aug 2011 06:27:49 +0000 (09:27 +0300)
commitc20007ec9f9cd325c1dfb103a409b2ef18bf85d7
treebbcf8975221348adadf30f1a3e1608736244b4c9
parentac683ce690da1be1e8b79377f1e777882aeb13e7
nandwrite: remove `autoplace' features

The `autoplace' option was meant to force an MTD_OOB_AUTO layout while
writing to flash. This option has not been properly supported for a very
long time, as the necessary ioctl, MEMSETOOBSEL, has been removed.
Apparently nobody uses this option. Kill it.

Other code depends on the availability of the `old_oobinfo' data, so we
move some code within a block that handles autoplacement if it's
*already* enabled. This, however, is inconsistent and should be cleaned
up shortly.

Note: this option may be re-implemented in the near future with the
addition of a new ioctl that allows on-the-fly chaning of MTD OOB modes.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
nandwrite.c