• Romain Izard's avatar
    mtd: nand: atmel: Avoid ECC errors when leaving backup mode · 143b0ab9
    Romain Izard authored
    During backup mode, the contents of all registers will be cleared as the
    SoC will be completely powered down. For a product that boots on NAND
    Flash memory, the bootloader will obviously use the related controller
    to read the Flash and correct any detected error in the memory, before
    handling back control to the kernel's resuming entry point.
    
    But it does not clean the NAND controller registers after use and on its
    side the kernel driver expects the error locator to be powered down and
    in a clean state. Add a resume hook for the PMECC error locator, and
    reset its registers.
    Signed-off-by: default avatarRomain Izard <romain.izard.pro@gmail.com>
    Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
    143b0ab9
pmecc.h 2.28 KB