From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Tue, 24 May 2011 15:23:03 +0200 Subject: [U-Boot] [PATCH 3/4] [v2] nand_util: drop trailing all-0xff pages if requested In-Reply-To: <5f4c5335ba60c7a41055d7069d92bbc46a5f8366.1305823168.git.bengardiner@nanometrics.ca> (Ben Gardiner's message of "Thu, 19 May 2011 12:49:24 -0400") References: <5f4c5335ba60c7a41055d7069d92bbc46a5f8366.1305823168.git.bengardiner@nanometrics.ca> 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 Hi Ben, > Add a flag to nand_read_skip_bad() such that if true, any trailing > pages in an eraseblock whose contents are entirely 0xff will be > dropped. > > The implementation is via a new drop_ffs() function which is > based on the function of the same name from the ubiformat > utility by Artem Bityutskiy. > > This is as-per the reccomendations of the UBI FAQ [1] > > Signed-off-by: Ben Gardiner > CC: Artem Bityutskiy Acked-by: Detlev Zundel Cheers Detlev -- "Oh, didn't you know, the Lord did the original programming of the universe in COBOL." - "That's why the world is the evil work of Satan. A true divine being would have used Scheme." - "And, if so, Jesus would have been crucified on a big lambda symbol." -- K. Chafin, K. Schilling & D. Hanley, on comp.lang.lisp -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de