ramips: skip bbt scan on mt7621
authorFelix Fietkau <nbd@nbd.name>
Thu, 10 Mar 2022 14:20:29 +0000 (15:20 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 25 Mar 2022 20:11:09 +0000 (21:11 +0100)
reduces unnecessary flash reads and speeds up boot time

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c

index c298bdd541a195942faf140db9cb23c9d54958f8..f3a81ee4e24101f1b9769fee3ab22336b6e236cb 100644 (file)
@@ -1229,7 +1229,7 @@ static int mt7621_nfc_init_chip(struct mt7621_nfc *nfc)
        nand_set_controller_data(nand, (void *)nfc);
        nand_set_flash_node(nand, nfc->dev->of_node);
 
-       nand->options |= NAND_USES_DMA | NAND_NO_SUBPAGE_WRITE;
+       nand->options |= NAND_USES_DMA | NAND_NO_SUBPAGE_WRITE | NAND_SKIP_BBTSCAN;
        if (!nfc->nfi_clk)
                nand->options |= NAND_KEEP_TIMINGS;