]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00140391 ISL29023:Keep int thresholds in interrupt handler
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 8 Mar 2011 06:59:21 +0000 (14:59 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:32:44 +0000 (08:32 +0200)
We used to set the interrupt thresholds to the measure range
of the light sensor in the interrupt handler, this potentially
makes user poll on the input event and never be waken up.

This patch keeps the interrupt thresholds in the interrupt
handler and is tested on MX53 SMD.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/input/misc/isl29023.c

index 7c1dd7f7efa5d73bb2fcabd88e3ba1fb44c22362..8ea0debc57c1e57dfaabd4c75f5f70ea51355386 100755 (executable)
@@ -826,14 +826,6 @@ static void isl29023_work(struct work_struct *work)
        /* Clear interrupt flag */
        isl29023_set_int_flag(client, 0);
 
-       /*
-        * Max threshold to avoid multiple interrupts.
-        * Let the user to reprogramme the interrupt
-        * thresholds.
-        */
-       isl29023_set_int_ht(client, 0xffff);
-       isl29023_set_int_lt(client, 0x0);
-
        data->mode_before_interrupt = isl29023_get_mode(client);
        lux = isl29023_get_adc_value(client);