lkml.org 
[lkml]   [2015]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.2 048/110] iio: st_accel: fix interrupt handling on LIS3LV02
    Date
    4.2-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Linus Walleij <linus.walleij@linaro.org>

    commit 61fd56309165d4790f99462d893b099f0b07312a upstream.

    This accelerometer accidentally either emits a DRDY signal or an
    IRQ signal. Accidentally I activated the IRQ signal as I thought
    it was analogous to the interrupt generator on other ST
    accelerometers. This was wrong. After this patch generic_buffer
    gives a nice stream of accelerometer readings.

    Fixes: 3acddf74f807778f "iio: st-sensors: add support for lis3lv02d accelerometer"
    Cc: Denis CIOCCA <denis.ciocca@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Jonathan Cameron <jic23@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/iio/accel/st_accel_core.c | 6 ------
    1 file changed, 6 deletions(-)

    --- a/drivers/iio/accel/st_accel_core.c
    +++ b/drivers/iio/accel/st_accel_core.c
    @@ -149,8 +149,6 @@
    #define ST_ACCEL_4_BDU_MASK 0x40
    #define ST_ACCEL_4_DRDY_IRQ_ADDR 0x21
    #define ST_ACCEL_4_DRDY_IRQ_INT1_MASK 0x04
    -#define ST_ACCEL_4_IG1_EN_ADDR 0x21
    -#define ST_ACCEL_4_IG1_EN_MASK 0x08
    #define ST_ACCEL_4_MULTIREAD_BIT true

    /* CUSTOM VALUES FOR SENSOR 5 */
    @@ -484,10 +482,6 @@ static const struct st_sensor_settings s
    .drdy_irq = {
    .addr = ST_ACCEL_4_DRDY_IRQ_ADDR,
    .mask_int1 = ST_ACCEL_4_DRDY_IRQ_INT1_MASK,
    - .ig1 = {
    - .en_addr = ST_ACCEL_4_IG1_EN_ADDR,
    - .en_mask = ST_ACCEL_4_IG1_EN_MASK,
    - },
    },
    .multi_read_bit = ST_ACCEL_4_MULTIREAD_BIT,
    .bootime = 2, /* guess */



    \
     
     \ /
      Last update: 2015-11-06 22:01    [W:4.144 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site