aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2021-07-31 03:33:03 +0200
committerChristian Lamparter <chunkeey@gmail.com>2023-05-14 00:08:35 +0200
commitcb9ccd644bf986d5c23e40dda92576d36a1d3b1b (patch)
tree8c0126178235b5195ce7869b269a48a4b1c65df0
parent32b6f1a5c8fbf57dd9245c9e12d8867e0b3d99ee (diff)
downloadupstream-cb9ccd644bf986d5c23e40dda92576d36a1d3b1b.tar.gz
upstream-cb9ccd644bf986d5c23e40dda92576d36a1d3b1b.tar.bz2
upstream-cb9ccd644bf986d5c23e40dda92576d36a1d3b1b.zip
ath79: ar934x: still advertise subpage on soft ecc
This sort of reverts Koen Vandeputte's commit 6561ca1fa51 ("ath79: ar934x: fix mounting issues if subpage is not supported") since it does not work on the MR18 as the UBI is coming from Meraki in that way and it used to work with AR71XX before. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
-rw-r--r--target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c b/target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c
index fafb3f56b8..28bdcb066d 100644
--- a/target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c
+++ b/target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c
@@ -1325,10 +1325,10 @@ static int ar934x_nfc_attach_chip(struct nand_chip *nand)
if (ret)
return ret;
- if (mtd->writesize == 2048)
- nand->options |= NAND_NO_SUBPAGE_WRITE;
-
if (nand->ecc.engine_type == NAND_ECC_ENGINE_TYPE_ON_HOST) {
+ if (mtd->writesize == 2048)
+ nand->options |= NAND_NO_SUBPAGE_WRITE;
+
ret = ar934x_nfc_setup_hwecc(nfc);
if (ret)
return ret;