[U-Boot] [PATCH 3/4] [v3] nand_util: drop trailing all-0xff pages if requested

Detlev Zundel dzu at denx.de
Fri May 27 11:43:04 CEST 2011


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 <bengardiner at nanometrics.ca>
> CC: Artem Bityutskiy <dedekind1 at gmail.com>
> CC: Detlev Zundel <dzu at denx.de>
>
> [1] http://www.linux-mtd.infradead.org/doc/ubi.html#L_flasher_algo

Looks good -

Acked-by: Detlev Zundel <dzu at denx.de>

Cheers
  Detlev

-- 
Der Kluge tue gleich anfangs, was der Dumme erst am Ende.
                                    --- Baltasar Gracian
--
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


More information about the U-Boot mailing list