From: Felix Fietkau Date: Thu, 10 Mar 2022 14:20:29 +0000 (+0100) Subject: ramips: skip bbt scan on mt7621 X-Git-Tag: v23.05.0-rc1~3847 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=55e8d52157f191bf578cf716983764e64c6f94e4;p=openwrt%2Fopenwrt.git ramips: skip bbt scan on mt7621 reduces unnecessary flash reads and speeds up boot time Signed-off-by: Felix Fietkau --- diff --git a/target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c b/target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c index c298bdd541..f3a81ee4e2 100644 --- a/target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c +++ b/target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c @@ -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;