Skip to content

Commit

Permalink
ath79: ar934x: still advertise subpage on soft ecc
Browse files Browse the repository at this point in the history
This sort of reverts Koen Vandeputte's commit
6561ca1 ("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>
  • Loading branch information
chunkeey committed May 13, 2023
1 parent 32b6f1a commit cb9ccd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cb9ccd6

Please sign in to comment.