aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2013-11-12 01:31:41 +0100
committerAndrea Adami <andrea.adami@gmail.com>2013-11-13 17:54:50 +0100
commitbf61c8091a1a3979b6ac96ffe2697a0f9b651f75 (patch)
tree3ae90dabaff7a938d8d4e94f90bd09000a01fa56 /recipes-kernel
parent6a2678ceb2a934c50dec604201a1b1ad8ea84691 (diff)
downloadmeta-handheld-bf61c8091a1a3979b6ac96ffe2697a0f9b651f75.tar.gz
linux-yocto: collie: MTD: disable erase suspend on write
Try to fix frequent errors like: sa1100: Chip not ready for buffer write. Xstatus = 80808080, status = 80808080 0x80 = 01010000 so the bits are SR4 and SR6 SR4 = Error in (page buffer) program or OTP program (PBPOPS) SR6 = Block erase suspended (BESS) Now with the fixup the msg is: SR.4 or SR.5 bits set in buffer write (status ffffffff). Clearing. Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc2
-rw-r--r--recipes-kernel/linux/linux-yocto-3.10/patches/patches-mtd/collie-fixup-strataflash.patch27
2 files changed, 28 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc b/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc
index 097dcbd..fc8acab 100644
--- a/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc
+++ b/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc
@@ -14,6 +14,6 @@ patch ../patches/patches-mtd/collie-mtd-resize.patch
patch ../patches/patches-mtd/collie-force-unlock.patch
patch ../patches/patches-sa1100/collie-irda.patch
patch ../patches/patches-sa1100/collie-add-bootblock.patch
-
+patch ../patches/patches-mtd/collie-fixup-strataflash.patch
patch ../patches/patches-sa1100/arm-sa1100-add-cpu-clock.patch
patch ../patches/patches-sa1100/fbdev-sa1100fb-make-use-of-device-clock.patch
diff --git a/recipes-kernel/linux/linux-yocto-3.10/patches/patches-mtd/collie-fixup-strataflash.patch b/recipes-kernel/linux/linux-yocto-3.10/patches/patches-mtd/collie-fixup-strataflash.patch
new file mode 100644
index 0000000..1fef596
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto-3.10/patches/patches-mtd/collie-fixup-strataflash.patch
@@ -0,0 +1,27 @@
+From 64fab473fe31b5c8a76000d7e82df7f6cdd751ba Mon Sep 17 00:00:00 2001
+From: Andrea Adami <andrea.adami@gmail.com>
+Date: Tue, 12 Nov 2013 01:28:18 +0100
+Subject: [PATCH 627/627] linux-yocto: collie: add MTD fixup like for Intel
+ Strataflash
+
+Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
+---
+ drivers/mtd/chips/cfi_cmdset_0001.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
+index d9d6f0e..eedb60b 100644
+--- a/drivers/mtd/chips/cfi_cmdset_0001.c
++++ b/drivers/mtd/chips/cfi_cmdset_0001.c
+@@ -36,7 +36,7 @@
+ #include <linux/mtd/mtd.h>
+ #include <linux/mtd/cfi.h>
+
+-/* #define CMDSET0001_DISABLE_ERASE_SUSPEND_ON_WRITE */
++#define CMDSET0001_DISABLE_ERASE_SUSPEND_ON_WRITE
+ /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */
+
+ // debugging, turns off buffer write mode if set to 1
+--
+1.8.1.5
+