2afb956efe62b18b81f563fa1f748c7a83784a81
[openwrt/staging/rmilecki.git] / target / linux / mediatek / patches-4.14 / 0140-mtd-nand-mtk-change-the-compile-sequence-of-mtk_nand.patch
1 From 71f568692a6d0a746d72c32d46a1bc09486b9dbb Mon Sep 17 00:00:00 2001
2 From: Xiaolei Li <xiaolei.li@mediatek.com>
3 Date: Sat, 28 Oct 2017 14:52:23 +0800
4 Subject: [PATCH 140/224] mtd: nand: mtk: change the compile sequence of
5 mtk_nand.o and mtk_ecc.o
6
7 There will get mtk ecc handler during mtk nand probe now.
8 If mtk ecc module is not initialized, then mtk nand probe will return
9 -EPROBE_DEFER, and retry later.
10
11 Change the compile sequence of mtk_nand.o and mtk_ecc.o, initialize mtk
12 ecc module before mtk nand module. This makes mtk nand module initialized
13 as soon as possible.
14
15 Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com>
16 Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
17 ---
18 drivers/mtd/nand/Makefile | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/mtd/nand/Makefile
22 +++ b/drivers/mtd/nand/Makefile
23 @@ -59,7 +59,7 @@ obj-$(CONFIG_MTD_NAND_SUNXI) += sunxi_n
24 obj-$(CONFIG_MTD_NAND_HISI504) += hisi504_nand.o
25 obj-$(CONFIG_MTD_NAND_BRCMNAND) += brcmnand/
26 obj-$(CONFIG_MTD_NAND_QCOM) += qcom_nandc.o
27 -obj-$(CONFIG_MTD_NAND_MTK) += mtk_nand.o mtk_ecc.o
28 +obj-$(CONFIG_MTD_NAND_MTK) += mtk_ecc.o mtk_nand.o
29
30 nand-objs := nand_base.o nand_bbt.o nand_timings.o nand_ids.o
31 nand-objs += nand_amd.o