Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 71eec3f8 authored by Herve Codina's avatar Herve Codina Committed by Greg Kroah-Hartman
Browse files

mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC


commit 90445ff6 upstream.

Crash detected on sam5d35 and its pmecc nand ecc controller.

The problem was a call to chip->ecc.hwctl from nand_write_subpage_hwecc
(nand_base.c) when we write a sub page.
chip->ecc.hwctl function is not set when we are using PMECC controller.
As a workaround, set NAND_NO_SUBPAGE_WRITE for PMECC controller in
order to disable sub page access in nand_write_page.

Signed-off-by: default avatarHerve Codina <Herve.CODINA@celad.com>
Acked-by: default avatarJosh Wu <josh.wu@atmel.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0c6859c7
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment