kernel: bump 5.15 to 5.15.107
[openwrt/openwrt.git] / target / linux / generic / hack-5.15 / 430-mtk-bmt-support.patch
1 From ac84397efb3b3868c71c10ad7521161773228a17 Mon Sep 17 00:00:00 2001
2 From: OpenWrt community <openwrt-devel@lists.openwrt.org>
3 Date: Wed, 13 Jul 2022 13:41:44 +0200
4 Subject: [PATCH] mtd/nand: add MediaTek NAND bad block managment table
5
6 ---
7 drivers/mtd/nand/Kconfig | 4 ++++
8 drivers/mtd/nand/Makefile | 1 +
9 2 files changed, 5 insertions(+)
10
11 --- a/drivers/mtd/nand/Kconfig
12 +++ b/drivers/mtd/nand/Kconfig
13 @@ -46,6 +46,10 @@ config MTD_NAND_ECC_SW_BCH
14 ECC codes. They are used with NAND devices requiring more than 1 bit
15 of error correction.
16
17 +config MTD_NAND_MTK_BMT
18 + bool "Support MediaTek NAND Bad-block Management Table"
19 + default n
20 +
21 endmenu
22
23 endmenu
24 --- a/drivers/mtd/nand/Makefile
25 +++ b/drivers/mtd/nand/Makefile
26 @@ -2,6 +2,7 @@
27
28 nandcore-objs := core.o bbt.o
29 obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
30 +obj-$(CONFIG_MTD_NAND_MTK_BMT) += mtk_bmt.o mtk_bmt_v2.o mtk_bmt_bbt.o mtk_bmt_nmbm.o
31
32 obj-y += onenand/
33 obj-y += raw/