diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-09-27 11:15:34 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-09-27 11:15:34 +0000 |
commit | f07044851f5125c47974bd5b22f6f377fccbd8b5 (patch) | |
tree | 58a5547fdd804c4e28bf8ba017013414300c65a9 /target | |
parent | c4a3fcf3f170778a2477b2120512fff4708f0976 (diff) | |
download | upstream-f07044851f5125c47974bd5b22f6f377fccbd8b5.tar.gz upstream-f07044851f5125c47974bd5b22f6f377fccbd8b5.tar.bz2 upstream-f07044851f5125c47974bd5b22f6f377fccbd8b5.zip |
ar71xx: ar934x-nfc: disable subpage write when hardware ECC is used
It is not supported by the controller.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38234 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c index 8b6658087f..9231251593 100644 --- a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c +++ b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c @@ -1281,6 +1281,12 @@ ar934x_nfc_setup_hwecc(struct ar934x_nfc *nfc) switch (nfc->mtd.writesize) { case 2048: + /* + * Writing a subpage separately is not supported, because + * the controller only does ECC on full-page accesses. + */ + nand->options = NAND_NO_SUBPAGE_WRITE; + nand->ecc.size = 512; nand->ecc.bytes = 7; nand->ecc.strength = 4; |