From fe7d25e649d9cddd1e46ce9412607cd8291448ed Mon Sep 17 00:00:00 2001 From: Han Xu Date: Thu, 21 Jan 2016 09:01:15 -0600 Subject: [PATCH] MLK-12309: mtd: gpmi: workaround for kernel 4.1 NAND boot new implementation of GPMI NAND raw access functions was added in kernel 4.1 which changes the way from writing data in mirror mode to writing data with BCH layout mode. New implementation can help third party tools to analysis the data since all data were written in same layout, with or without ECC, but this implementation doesn't work for NAND boot. Kobs-ng, the tool for NAND boot will create the boot configuration data for each specific platform and need to write the data to NAND in mirror mode. In this workaround, we will keep using the previous raw NAND access function to fix the issue. Signed-off-by: Han Xu --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index 716574eb5c69..e1925dd7ebf9 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c @@ -2210,8 +2210,6 @@ static int gpmi_init_last(struct gpmi_nand_data *this) ecc->write_page = gpmi_ecc_write_page; ecc->read_oob = gpmi_ecc_read_oob; ecc->write_oob = gpmi_ecc_write_oob; - ecc->read_page_raw = gpmi_ecc_read_page_raw; - ecc->write_page_raw = gpmi_ecc_write_page_raw; ecc->read_oob_raw = gpmi_ecc_read_oob_raw; ecc->write_oob_raw = gpmi_ecc_write_oob_raw; ecc->mode = NAND_ECC_HW; -- 2.17.1