diff options
author | Romain Izard | 2017-09-28 11:46:23 +0200 |
---|---|---|
committer | Boris Brezillon | 2017-10-07 11:28:05 +0200 |
commit | 143b0ab97d7a40df399cfbc6e925107bed1c7953 (patch) | |
tree | c24127b71537b6d88468040c0cb47877ff57bb76 /drivers/irqchip/irq-metag-ext.c | |
parent | mtd: nand: qcom: support for command descriptor formation (diff) | |
download | kernel-qcow2-linux-143b0ab97d7a40df399cfbc6e925107bed1c7953.tar.gz kernel-qcow2-linux-143b0ab97d7a40df399cfbc6e925107bed1c7953.tar.xz kernel-qcow2-linux-143b0ab97d7a40df399cfbc6e925107bed1c7953.zip |
mtd: nand: atmel: Avoid ECC errors when leaving backup mode
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: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/irqchip/irq-metag-ext.c')
0 files changed, 0 insertions, 0 deletions