From: Herve Codina Date: Mon, 3 Mar 2014 11:15:29 +0000 (+0100) Subject: mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC X-Git-Tag: v3.15-rc1~65^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90445ff6241e2a13445310803e2efa606c61f276;p=pandora-kernel.git 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 Acked-by: Josh Wu Cc: stable@vger.kernel.org Signed-off-by: Brian Norris --- Reading git-diff-tree failed