linux 3.0: silence 'mmcblk0: retrying using single block read' warning
authorKoen Kooi <koen@dominion.thruhere.net>
Wed, 27 Jul 2011 09:37:20 +0000 (11:37 +0200)
committerKoen Kooi <koen@dominion.thruhere.net>
Wed, 27 Jul 2011 09:37:20 +0000 (11:37 +0200)
Older OMAP3 silicon can only do single block reads so spamming syslog with it isn't helpfull

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
recipes-kernel/linux/linux-3.0/sakoman/0001-mmc-don-t-display-single-block-read-console-messages.patch [new file with mode: 0644]
recipes-kernel/linux/linux_3.0.bb

diff --git a/recipes-kernel/linux/linux-3.0/sakoman/0001-mmc-don-t-display-single-block-read-console-messages.patch b/recipes-kernel/linux/linux-3.0/sakoman/0001-mmc-don-t-display-single-block-read-console-messages.patch
new file mode 100644 (file)
index 0000000..5a27293
--- /dev/null
@@ -0,0 +1,28 @@
+From 7d934ae83a2990169d1d7f00a220ae80f5561d31 Mon Sep 17 00:00:00 2001
+From: Steve Sakoman <steve@sakoman.com>
+Date: Mon, 4 Jan 2010 19:20:25 -0800
+Subject: [PATCH] mmc: don't display single block read console messages
+
+mmc: don't display single block read console messages
+---
+ drivers/mmc/card/block.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
+index f85e422..0025735 100644
+--- a/drivers/mmc/card/block.c
++++ b/drivers/mmc/card/block.c
+@@ -812,8 +812,8 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *req)
+                   brq.data.error || brq.stop.error) {
+                       if (brq.data.blocks > 1 && rq_data_dir(req) == READ) {
+                               /* Redo read one sector at a time */
+-                              printk(KERN_WARNING "%s: retrying using single "
+-                                     "block read\n", req->rq_disk->disk_name);
++                              /* printk(KERN_WARNING "%s: retrying using single "
++                                     "block read\n", req->rq_disk->disk_name); */
+                               disable_multi = 1;
+                               continue;
+                       }
+-- 
+1.6.6.1
+
index eb823c75b03a917f94fcefa378d07e3fca54b2a7..9244d5b244ca0ebbf170f6dfb15728a17561a182 100644 (file)
@@ -9,7 +9,7 @@ COMPATIBLE_MACHINE = "(beagleboard)"
 SRCREV_pn-${PN} = "02f8c6aee8df3cdc935e9bdd4f2d020306035dbe"
 
 # The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc
-MACHINE_KERNEL_PR_append = "f"
+MACHINE_KERNEL_PR_append = "g"
 
 FILESPATHPKG_prepend = "linux-3.0:"
 
@@ -197,6 +197,8 @@ SRC_URI += "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;pro
             file://beagle/0005-omap3-Add-basic-support-for-720MHz-part.patch \
             file://madc/0001-Enabling-Hwmon-driver-for-twl4030-madc.patch \
             file://madc/0002-mfd-twl-core-enable-madc-clock.patch \
+            \
+            file://sakoman/0001-mmc-don-t-display-single-block-read-console-messages.patch \
             file://defconfig"
 
 SRC_URI_append_beagleboard = " file://logo_linux_clut224.ppm \