From: Joe Schultz Date: Mon, 7 Apr 2014 16:58:18 +0000 (-0500) Subject: mtd: fsl_ifc_nand: Workaround bogus WP on 16-bit NAND X-Git-Tag: omap-for-v3.16/fixes-against-rc1~57^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2170480487e3dee8a74204ce346b1b1096a13fd0;p=pandora-kernel.git mtd: fsl_ifc_nand: Workaround bogus WP on 16-bit NAND A workaround was already in place that set the WP bit in the IFC_CSPR0 register after a STATUS command, however it used an 8-bit write method. As a result, the WP bit was never set on 16-bit devices, and these devices would eventually be incorrectly marked as write-protected. This patch checks the chip options for a 16-bit device and uses the appropriate write method to set the WP bit after a STATUS command. Signed-off-by: Joe Schultz Signed-off-by: Aaron Sierra Signed-off-by: Brian Norris --- Reading git-diff-tree failed