From: Tom Rini Date: Sat, 24 Jun 2017 18:17:41 -0400 Subject: [U-Boot] mtd: OneNAND: Fix onenand_block_markbad In-Reply-To: <20170620151745.76jj6ht5bire5wad@lenoch> References: <20170620151745.76jj6ht5bire5wad@lenoch> Message-ID: <20170624221741.GX27196@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jun 20, 2017 at 05:17:45PM +0200, Ladislav Michl wrote: > commit dfe64e2c89731a3f9950d7acd8681b68df2bae03 > Author: Sergey Lapin > Date: Mon Jan 14 03:46:50 2013 +0000 > > mtd: resync with Linux-3.7.1 > > modified onenand_block_markbad to call mtd_block_markbad, > but as _block_markbad function pointer used by mtd_block_markbad > to do actual job is by default pointing back to > onenand_block_markbad there is no way this function ever > finishes its job. > Fix it by changing function body according current (4.12-rc6) > linux implementation. > Tested on IGEPv2 board with Muxed OneNAND(DDP) 512MB containing > several unerasable blocks this function marked bad. > > Signed-off-by: Ladislav Michl Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: