summaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1151--pcf50633-Print-less-debugging-messages.patch
diff options
context:
space:
mode:
authormirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 11:58:53 +0000
committermirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 11:58:53 +0000
commitfc54b9bf158eea9cae647ce2c58f7d9989af173a (patch)
tree54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.24/1151--pcf50633-Print-less-debugging-messages.patch
parentd9f49b62b28ebd245587854efa484974d90debbf (diff)
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1151--pcf50633-Print-less-debugging-messages.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1151--pcf50633-Print-less-debugging-messages.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1151--pcf50633-Print-less-debugging-messages.patch b/target/linux/s3c24xx/patches-2.6.24/1151--pcf50633-Print-less-debugging-messages.patch
new file mode 100644
index 000000000..f93620709
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1151--pcf50633-Print-less-debugging-messages.patch
@@ -0,0 +1,36 @@
+From 0a6457836918f0aba88f861b7be65bfb883e6780 Mon Sep 17 00:00:00 2001
+From: Holger Freyther <ich@tamarin.(none)>
+Date: Tue, 13 May 2008 18:53:40 +0100
+Subject: [PATCH] [pcf50633] Print less debugging messages
+ According to the comments in the code we have to read
+ INT1 - INT5 in case of any interrupt. So even if we have masked
+ out the periodic timer interrupt we were able to see that it
+ fired. Only print that we got a SECOND interrupt if we are actually
+ interested in the periodic tick. From a brief look at the datasheet there
+ is no way to stop the periodic tick.
+
+Signed-Off-By: Holger Freyther <zecke@openmoko.org>
+---
+ drivers/i2c/chips/pcf50633.c | 5 +++--
+ 1 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
+index 1c10c42..b354a9c 100644
+--- a/drivers/i2c/chips/pcf50633.c
++++ b/drivers/i2c/chips/pcf50633.c
+@@ -686,9 +686,10 @@ static void pcf50633_work(struct work_struct *work)
+ rtc_update_irq(pcf->rtc, 1, RTC_AF | RTC_IRQF);
+ }
+ if (pcfirq[0] & PCF50633_INT1_SECOND) {
+- DEBUGPC("SECOND ");
+- if (pcf->flags & PCF50633_F_RTC_SECOND)
++ if (pcf->flags & PCF50633_F_RTC_SECOND) {
++ DEBUGPC("SECOND ");
+ rtc_update_irq(pcf->rtc, 1, RTC_PF | RTC_IRQF);
++ }
+
+ if (pcf->onkey_seconds >= 0 &&
+ pcf->flags & PCF50633_F_PWR_PRESSED) {
+--
+1.5.6.5
+