lkml.org 
[lkml]   [2019]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [v2] mtd: rawnand: Change calculating of position page containing BBM
Date
On Tue, 2019-09-24 at 05:54:31 UTC, Piotr Sroka wrote:
> Change calculating of position page containing BBM
>
> If none of BBM flags are set then function nand_bbm_get_next_page
> reports EINVAL. It causes that BBM is not read at all during scanning
> factory bad blocks. The result is that the BBT table is build without
> checking factory BBM at all. For Micron flash memories none of these
> flags are set if page size is different than 2048 bytes.
>
> Address this regression by:
> - adding NAND_BBM_FIRSTPAGE chip flag without any condition. It solves
> issue only for Micron devices.
> - changing the nand_bbm_get_next_page_function. It will return 0
> if no of BBM flag is set and page parameter is 0. After that modification
> way of discovering factory bad blocks will work similar as in kernel
> version 5.1.
>
> Cc: stable@vger.kernel.org
> Fixes: f90da7818b14 (mtd: rawnand: Support bad block markers in first, second or last page)
> Signed-off-by: Piotr Sroka <piotrs@cadence.com>
> Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

\
 
 \ /
  Last update: 2019-10-04 18:05    [W:0.049 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site