From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Gardiner Date: Thu, 19 May 2011 12:49:21 -0400 Subject: [U-Boot] [PATCH v2 0/4] introduce nand write.trimffs Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This series adds a nand write variant which implements the procedure reccomended in the UBI FAQ [1] of dropping trailing pages of eraseblocks containing entirely 0xff's. [1] http://www.linux-mtd.infradead.org/doc/ubi.html#L_flasher_algo Changes since v1: * renamed to 'trimffs' from 'ubi' * wrapped the new feature in #ifdefs * don't make it default for jffs -- patch dropped * attribution of the drop_ffs() function from mtd-utils to Artem Ben Gardiner (4): [v2] nand_base: trivial: fix comment read/write comment [v2] nand_util: convert nand_write_skip_bad() to flags [v2] nand_util: drop trailing all-0xff pages if requested [v2] cmd_nand: add nand write.trimffs command common/cmd_nand.c | 22 +++++++++++++++++++- drivers/mtd/nand/nand_base.c | 2 +- drivers/mtd/nand/nand_util.c | 43 +++++++++++++++++++++++++++++++++++------ include/nand.h | 7 +++++- 4 files changed, 63 insertions(+), 11 deletions(-) -- 1.7.4.1