changed Makefile and profiles, added patches for kernel 2.6.24
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1290-Subject-PATCH-rework-to-make-USBINS-USBREM-exclus.patch
1 From 853fcd2329b427788677d11431e6165d108f935b Mon Sep 17 00:00:00 2001
2 From: Matt Hsu <matt_hsu@openmoko.org>
3 Date: Wed, 17 Sep 2008 16:10:43 +0100
4 Subject: [PATCH] Subject: [PATCH] rework-to-make-USBINS-USBREM-exclusive.patch
5
6 This patch is a work-around solution to correct charging indication logic.
7
8 Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
9 ---
10  drivers/i2c/chips/pcf50633.c |    6 +++++-
11  1 files changed, 5 insertions(+), 1 deletions(-)
12
13 diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
14 index bac307e..c186fdb 100644
15 --- a/drivers/i2c/chips/pcf50633.c
16 +++ b/drivers/i2c/chips/pcf50633.c
17 @@ -915,7 +915,11 @@ static void pcf50633_work(struct work_struct *work)
18                 add_request_to_adc_queue(pcf, PCF50633_ADCC1_MUX_ADCIN1,
19                                      PCF50633_ADCC1_AVERAGE_16);
20         }
21 -       if (pcfirq[0] & PCF50633_INT1_USBREM) {
22 +       if (pcfirq[0] & PCF50633_INT1_USBREM &&
23 +                               !(pcfirq[0] & PCF50633_INT1_USBINS)) {
24 +               /* the occurrence of USBINS and USBREM
25 +                * should be exclusive in one schedule work
26 +                */
27                 DEBUGPC("USBREM ");
28  
29                 pcf->usb_removal_count++;
30 -- 
31 1.5.6.5
32