Hey,
before I leave. When getting woken up by the modem the PMU somehow has the
SECOND interrupt still cleared and will keep it that way. This patch is just
a band aid to the real problem and will set the interrupt mask when we are
not interested in the second interrupt.
z.
From ac519219cb7cef78e6f4ee26fa6cb24535addd87 Mon Sep 17 00:00:00 2001
From: Holger Freyther <[EMAIL PROTECTED]>
Date: Mon, 7 Jul 2008 14:09:24 +0200
Subject: [PATCH] [pcf50633] Set the SECOND interrupt mask to disable the interrupt
On resume from a modem wakeup it was possible that the SECOND interrupt
remained cleared. If we get a periodic tick and are not watching for keys
and have not been asked to tick periodically then disable the interrupt.
Coldplug should remain the same. The root cause is just shadowed with
this commit.
---
drivers/i2c/chips/pcf50633.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
index 64de9bf..ebdc1b1 100644
--- a/drivers/i2c/chips/pcf50633.c
+++ b/drivers/i2c/chips/pcf50633.c
@@ -974,6 +974,10 @@ static void pcf50633_work(struct work_struct *work)
DEBUGPC("Power Off ");
pcf50633_go_standby();
}
+ } else if (!(pcf->flags & PCF50633_F_RTC_SECOND)) {
+ reg_set_bit_mask(pcf, PCF50633_REG_INT1M,
+ PCF50633_INT1_SECOND,
+ PCF50633_INT1_SECOND);
}
}
--
1.5.2.3