• Scott Branden's avatar
    mtd: nand: added nand_shutdown · 72ea4036
    Scott Branden authored
    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: default avatarScott Branden <sbranden@broadcom.com>
    Tested-by: default avatarScott Branden <sbranden@broadcom.com>
    Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
    72ea4036
nand_base.c 111 KB