diff options
author | Herve Codina <Herve.CODINA@celad.com> | 2014-03-03 15:15:29 +0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-11 09:42:31 +0400 |
commit | 90445ff6241e2a13445310803e2efa606c61f276 (patch) | |
tree | d0e70dc214f4a9f4651324d90090449a5025b44b /drivers/mtd/mtdchar.c | |
parent | b8e2931d168724ca95d275f4f825636bff82a9e8 (diff) | |
download | linux-90445ff6241e2a13445310803e2efa606c61f276.tar.xz |
mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC
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: Herve Codina <Herve.CODINA@celad.com>
Acked-by: Josh Wu <josh.wu@atmel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/mtdchar.c')
0 files changed, 0 insertions, 0 deletions