[ar71xx] preliminary support for the Ubiquiti RouterStation Pro
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1151--pcf50633-Print-less-debugging-messages.patch
1 From 0a6457836918f0aba88f861b7be65bfb883e6780 Mon Sep 17 00:00:00 2001
2 From: Holger Freyther <ich@tamarin.(none)>
3 Date: Tue, 13 May 2008 18:53:40 +0100
4 Subject: [PATCH] [pcf50633] Print less debugging messages
5 According to the comments in the code we have to read
6 INT1 - INT5 in case of any interrupt. So even if we have masked
7 out the periodic timer interrupt we were able to see that it
8 fired. Only print that we got a SECOND interrupt if we are actually
9 interested in the periodic tick. From a brief look at the datasheet there
10 is no way to stop the periodic tick.
11
12 Signed-Off-By: Holger Freyther <zecke@openmoko.org>
13 ---
14 drivers/i2c/chips/pcf50633.c | 5 +++--
15 1 files changed, 3 insertions(+), 2 deletions(-)
16
17 diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
18 index 1c10c42..b354a9c 100644
19 --- a/drivers/i2c/chips/pcf50633.c
20 +++ b/drivers/i2c/chips/pcf50633.c
21 @@ -686,9 +686,10 @@ static void pcf50633_work(struct work_struct *work)
22 rtc_update_irq(pcf->rtc, 1, RTC_AF | RTC_IRQF);
23 }
24 if (pcfirq[0] & PCF50633_INT1_SECOND) {
25 - DEBUGPC("SECOND ");
26 - if (pcf->flags & PCF50633_F_RTC_SECOND)
27 + if (pcf->flags & PCF50633_F_RTC_SECOND) {
28 + DEBUGPC("SECOND ");
29 rtc_update_irq(pcf->rtc, 1, RTC_PF | RTC_IRQF);
30 + }
31
32 if (pcf->onkey_seconds >= 0 &&
33 pcf->flags & PCF50633_F_PWR_PRESSED) {
34 --
35 1.5.6.5
36
This page took 0.044663 seconds and 5 git commands to generate.