From: Lothar Waßmann Date: Fri, 28 Mar 2014 10:35:06 +0000 (+0100) Subject: mtd: gpmi: make blockmark swapping optional X-Git-Tag: omap-for-v3.17/fixes-against-rc2~111^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a500afe1e0e84c7a126df693dbd01353756dcfa;p=pandora-kernel.git mtd: gpmi: make blockmark swapping optional With a flash-based BBT there is no reason to move the Factory Bad Block Marker from the data area buffer (to where it is mapped by the GPMI NAND controller) to the OOB buffer. Thus, make this feature configurable via DT. This is required for the Ka-Ro electronics platforms. In the original code 'this->swap_block_mark' was synonymous with '!GPMI_IS_MX23()', so use the latter at the relevant places. Signed-off-by: Lothar Waßmann Acked-by: Huang Shijie Signed-off-by: Brian Norris --- Reading git-diff-tree failed