MLK-12309: mtd: gpmi: workaround for kernel 4.1 NAND boot
authorHan Xu <han.xu@nxp.com>
Thu, 21 Jan 2016 15:01:15 +0000 (09:01 -0600)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:57 +0000 (14:49 -0500)
commitfe7d25e649d9cddd1e46ce9412607cd8291448ed
treeeee868bf4ea35b376d55cbaa4c42344a8d1d1b5e
parenteae9e1f66f876dffecbd7ab7e597f4a61caf0176
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 <han.xu@nxp.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c