summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2013-11-05 14:21:52 -0600
committerJesse Gilles <jgilles@multitech.com>2013-11-05 14:21:52 -0600
commita954eadf9f4193863adb0a75f6a256eedb373308 (patch)
treec3be3b2cd6707c5011d50afa170f01c69f5aa1af
parente075a5ab43b69c97bdb87ddaf339cbccf480daf4 (diff)
linux-2.6.39-at91: move nand bit flip messages to debug
-rw-r--r--multitech/recipes/linux/linux-2.6.39-at91/linux-2.6.39-at91-atmel-nand-debug-bit-flips.patch22
-rw-r--r--multitech/recipes/linux/linux_2.6.39-at91.bb3
2 files changed, 24 insertions, 1 deletions
diff --git a/multitech/recipes/linux/linux-2.6.39-at91/linux-2.6.39-at91-atmel-nand-debug-bit-flips.patch b/multitech/recipes/linux/linux-2.6.39-at91/linux-2.6.39-at91-atmel-nand-debug-bit-flips.patch
new file mode 100644
index 0000000..e1a823d
--- /dev/null
+++ b/multitech/recipes/linux/linux-2.6.39-at91/linux-2.6.39-at91-atmel-nand-debug-bit-flips.patch
@@ -0,0 +1,22 @@
+Index: git/drivers/mtd/nand/atmel_nand.c
+===================================================================
+--- git.orig/drivers/mtd/nand/atmel_nand.c 2013-04-17 17:15:15.000000000 -0500
++++ git/drivers/mtd/nand/atmel_nand.c 2013-10-28 10:32:35.859980295 -0500
+@@ -693,7 +693,7 @@
+ *(buf + byte_pos) ^= (1 << bit_pos);
+
+ pos = sector_num * host->pmecc_sector_size + byte_pos;
+- dev_info(host->dev, "Bit flip in data area, byte_pos: %d, bit_pos: %d, 0x%02x -> 0x%02x\n",
++ printk(KERN_DEBUG "atmel_nand: Bit flip in data area, byte_pos: %d, bit_pos: %d, 0x%02x -> 0x%02x\n",
+ pos, bit_pos, err_byte, *(buf + byte_pos));
+ } else {
+ /* Bit flip in OOB area */
+@@ -703,7 +703,7 @@
+ ecc[tmp] ^= (1 << bit_pos);
+
+ pos = tmp + nand_chip->ecc.layout->eccpos[0];
+- dev_info(host->dev, "Bit flip in OOB, oob_byte_pos: %d, bit_pos: %d, 0x%02x -> 0x%02x\n",
++ printk(KERN_DEBUG, "atmel_nand: Bit flip in OOB, oob_byte_pos: %d, bit_pos: %d, 0x%02x -> 0x%02x\n",
+ pos, bit_pos, err_byte, ecc[tmp]);
+ }
+
diff --git a/multitech/recipes/linux/linux_2.6.39-at91.bb b/multitech/recipes/linux/linux_2.6.39-at91.bb
index a309023..655ef5b 100644
--- a/multitech/recipes/linux/linux_2.6.39-at91.bb
+++ b/multitech/recipes/linux/linux_2.6.39-at91.bb
@@ -8,7 +8,8 @@ SRCREV="0fdbb8dc2ea4f6f4227a855067ed070fe3a9cff1"
# Add 2.6.39.4 patch customized to patch against at91 branch
SRC_URI = "git://github.com/linux4sam/linux-at91.git;protocol=http;tag=${SRCREV} \
- file://linux-2.6.39.4-at91.patch"
+ file://linux-2.6.39.4-at91.patch \
+ file://linux-2.6.39-at91-atmel-nand-debug-bit-flips.patch"
S = "${WORKDIR}/git"