• B
    mtd: nand: refactor BB marker detection · c7b28e25
    Brian Norris 提交于
    Some level of support for various scanning locations was already built in,
    but this required clean-up. First, BB marker location cannot be determined
    _only_ by the page size. Instead, I implemented some heuristic detection
    based on data sheets from various manufacturers (all found in
    nand_base.c:nand_get_flash_type()).
    
    Second, once these options were identified, they were not handled properly
    by nand_bbt.c:nand_default_bbt(). I updated the static nand_bbt_desc structs
    to reflect the need for more combinations of detection. The memory allocation
    here probably needs to be done dynamically in the very near future (see next
    patches).
    Signed-off-by: NBrian Norris <norris@broadcom.com>
    Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
    c7b28e25
nand_base.c 86.0 KB