Re: [PATCH 1/2] nand: nand-mxs: Fix marking BBT blocks as bad

2021-03-21 Thread Sascha Hauer
On Tue, Mar 16, 2021 at 01:36:25PM +0100, Stefan Riedmueller wrote: > Currently the nand-mxs driver uses a hook function to the > mtd->_block_markbad function to allow write access to the OOB bytes only > if it is to mark a block as bad. > > This hook is not called when a Bad Block Table block is

[PATCH 1/2] nand: nand-mxs: Fix marking BBT blocks as bad

2021-03-16 Thread Stefan Riedmueller
Currently the nand-mxs driver uses a hook function to the mtd->_block_markbad function to allow write access to the OOB bytes only if it is to mark a block as bad. This hook is not called when a Bad Block Table block is marked bad since this routine directly calls nand_markbad_bbm. The chip->lega