openwrtv3/target/linux/mcs814x/patches-3.14/012-mtd-cfi_cmdset_0002-force-word-write.patch
Florian Fainelli dd4ee63fa4 mcs814x: add 3.14 kernel support
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 43926
2015-01-10 20:12:02 +00:00

14 lines
346 B
Diff

--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -41,9 +41,9 @@
#include <linux/mtd/xip.h>
#define AMD_BOOTLOC_BUG
-#define FORCE_WORD_WRITE 0
+#define FORCE_WORD_WRITE 1
-#define MAX_WORD_RETRIES 3
+#define MAX_WORD_RETRIES 10
#define SST49LF004B 0x0060
#define SST49LF040B 0x0050