• S
    mtd: nand: added nand_shutdown · 72ea4036
    Scott Branden 提交于
    Add nand_shutdown to wait for current nand operations to finish and prevent
    further operations by changing the nand flash state to FL_SHUTDOWN.
    
    This is addressing a problem observed during reboot tests using UBIFS
    root file system: NAND erase operations that are in progress during
    system reboot/shutdown are causing partial erased blocks. Although UBI should
    be able to detect and recover from this error, this change will avoid
    the creation of partial erased blocks on reboot in the middle of a NAND erase
    operation.
    Signed-off-by: NScott Branden <sbranden@broadcom.com>
    Tested-by: NScott Branden <sbranden@broadcom.com>
    Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
    72ea4036
nand_base.c 110.9 KB