diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-08 13:45:02 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-11 13:10:19 +0100 |
commit | e21cb649a235180563363b8af5ba8296b9ac0baa (patch) | |
tree | 3a9f61cc624ae783359cada760f69ab40a0c7369 /target/linux/ar71xx/files/drivers/mtd | |
parent | b7bee2858b582164d55c32be44df3fcb42cafc78 (diff) | |
download | mtk-20170518-e21cb649a235180563363b8af5ba8296b9ac0baa.zip mtk-20170518-e21cb649a235180563363b8af5ba8296b9ac0baa.tar.gz mtk-20170518-e21cb649a235180563363b8af5ba8296b9ac0baa.tar.bz2 |
ar71xx: disable sub-page writes on routerboard nand drivers
They seem to fail in tests using UBI, and are not used by yaffs2
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ar71xx/files/drivers/mtd')
3 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c b/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c index 981bfcf..f2b430e 100644 --- a/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c +++ b/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c @@ -218,6 +218,7 @@ static int rb4xx_nand_probe(struct platform_device *pdev) info->chip.chip_delay = 25; info->chip.ecc.mode = NAND_ECC_SOFT; + info->chip.options = NAND_NO_SUBPAGE_WRITE; platform_set_drvdata(pdev, info); diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c b/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c index a20409b..a9b287b 100644 --- a/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c +++ b/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c @@ -277,6 +277,7 @@ static int rb750_nand_probe(struct platform_device *pdev) info->chip.chip_delay = 25; info->chip.ecc.mode = NAND_ECC_SOFT; + info->chip.options = NAND_NO_SUBPAGE_WRITE; info->pdata = pdata; diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c b/target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c index f0aa3c3..bfc5d4d 100644 --- a/target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c +++ b/target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c @@ -321,6 +321,7 @@ static int rb91x_nand_probe(struct platform_device *pdev) rbni->chip.chip_delay = 25; rbni->chip.ecc.mode = NAND_ECC_SOFT; + rbni->chip.options = NAND_NO_SUBPAGE_WRITE; platform_set_drvdata(pdev, rbni); |