[PATCH 6/7] fix-suppress-cpu-suspend-save-restore-messages.patch

Andy Green andy at openmoko.com
Sat May 10 11:49:48 CEST 2008


syslog is crapped up with a ton of junk on suspend and resume

Signed-off-by: Andy Green <andy at openmoko.com>
---

 arch/arm/plat-s3c24xx/pm.c   |    6 +++---
 drivers/i2c/chips/pcf50633.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/plat-s3c24xx/pm.c b/arch/arm/plat-s3c24xx/pm.c
index 4fdb311..5fc52a8 100644
--- a/arch/arm/plat-s3c24xx/pm.c
+++ b/arch/arm/plat-s3c24xx/pm.c
@@ -377,7 +377,7 @@ void s3c2410_pm_do_save(struct sleep_save *ptr, int count)
 {
 	for (; count > 0; count--, ptr++) {
 		ptr->val = __raw_readl(ptr->reg);
-		DBG("saved %p value %08lx\n", ptr->reg, ptr->val);
+		/* DBG("saved %p value %08lx\n", ptr->reg, ptr->val); */
 	}
 }
 
@@ -392,8 +392,8 @@ void s3c2410_pm_do_save(struct sleep_save *ptr, int count)
 void s3c2410_pm_do_restore(struct sleep_save *ptr, int count)
 {
 	for (; count > 0; count--, ptr++) {
-		printk(KERN_DEBUG "restore %p (restore %08lx, was %08x)\n",
-		       ptr->reg, ptr->val, __raw_readl(ptr->reg));
+		/* printk(KERN_DEBUG "restore %p (restore %08lx, was %08x)\n",
+		       ptr->reg, ptr->val, __raw_readl(ptr->reg)); */
 
 		__raw_writel(ptr->val, ptr->reg);
 	}
diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
index 205f4e3..29f5904 100644
--- a/drivers/i2c/chips/pcf50633.c
+++ b/drivers/i2c/chips/pcf50633.c
@@ -1891,7 +1891,7 @@ static int pcf50633_suspend(struct device *dev, pm_message_t state)
 	int i;
 
 	/* The general idea is to power down all unused power supplies,
-	 * and then mask all PCF50606 interrup sources but EXTONR, ONKEYF
+	 * and then mask all PCF50633 interrupt sources but EXTONR, ONKEYF
 	 * and ALARM */
 
 	mutex_lock(&pcf->lock);





More information about the openmoko-kernel mailing list