lkml.org 
[lkml]   [2014]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.10 76/97] iio:gyro: bug on L3GD20H gyroscope support
    Date
    3.10-stable review patch.  If anyone has any objections, please let me know.

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

    From: Denis CIOCCA <denis.ciocca@st.com>

    commit a0657716416f834ef7710a9044614d50a36c3bdc upstream.

    The driver was not able to manage the sensor: during probe function
    and wai check, the driver stops and writes: "device name and WhoAmI mismatch."
    The correct value of L3GD20H wai is 0xd7 instead of 0xd4.
    Dropped support for the sensor.

    Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
    Signed-off-by: Jonathan Cameron <jic23@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/iio/gyro/Kconfig | 2 +-
    drivers/iio/gyro/st_gyro.h | 1 -
    drivers/iio/gyro/st_gyro_core.c | 9 ++++-----
    drivers/iio/gyro/st_gyro_i2c.c | 1 -
    drivers/iio/gyro/st_gyro_spi.c | 1 -
    5 files changed, 5 insertions(+), 9 deletions(-)

    --- a/drivers/iio/gyro/Kconfig
    +++ b/drivers/iio/gyro/Kconfig
    @@ -50,7 +50,7 @@ config IIO_ST_GYRO_3AXIS
    select IIO_ST_GYRO_BUFFER if (IIO_TRIGGERED_BUFFER)
    help
    Say yes here to build support for STMicroelectronics gyroscopes:
    - L3G4200D, LSM330DL, L3GD20, L3GD20H, LSM330DLC, L3G4IS, LSM330.
    + L3G4200D, LSM330DL, L3GD20, LSM330DLC, L3G4IS, LSM330.

    This driver can also be built as a module. If so, will be created
    these modules:
    --- a/drivers/iio/gyro/st_gyro.h
    +++ b/drivers/iio/gyro/st_gyro.h
    @@ -19,7 +19,6 @@
    #define LSM330DL_GYRO_DEV_NAME "lsm330dl_gyro"
    #define LSM330DLC_GYRO_DEV_NAME "lsm330dlc_gyro"
    #define L3GD20_GYRO_DEV_NAME "l3gd20"
    -#define L3GD20H_GYRO_DEV_NAME "l3gd20h"
    #define L3G4IS_GYRO_DEV_NAME "l3g4is_ui"
    #define LSM330_GYRO_DEV_NAME "lsm330_gyro"

    --- a/drivers/iio/gyro/st_gyro_core.c
    +++ b/drivers/iio/gyro/st_gyro_core.c
    @@ -162,11 +162,10 @@ static const struct st_sensors st_gyro_s
    .wai = ST_GYRO_2_WAI_EXP,
    .sensors_supported = {
    [0] = L3GD20_GYRO_DEV_NAME,
    - [1] = L3GD20H_GYRO_DEV_NAME,
    - [2] = LSM330D_GYRO_DEV_NAME,
    - [3] = LSM330DLC_GYRO_DEV_NAME,
    - [4] = L3G4IS_GYRO_DEV_NAME,
    - [5] = LSM330_GYRO_DEV_NAME,
    + [1] = LSM330D_GYRO_DEV_NAME,
    + [2] = LSM330DLC_GYRO_DEV_NAME,
    + [3] = L3G4IS_GYRO_DEV_NAME,
    + [4] = LSM330_GYRO_DEV_NAME,
    },
    .ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
    .odr = {
    --- a/drivers/iio/gyro/st_gyro_i2c.c
    +++ b/drivers/iio/gyro/st_gyro_i2c.c
    @@ -61,7 +61,6 @@ static const struct i2c_device_id st_gyr
    { LSM330DL_GYRO_DEV_NAME },
    { LSM330DLC_GYRO_DEV_NAME },
    { L3GD20_GYRO_DEV_NAME },
    - { L3GD20H_GYRO_DEV_NAME },
    { L3G4IS_GYRO_DEV_NAME },
    { LSM330_GYRO_DEV_NAME },
    {},
    --- a/drivers/iio/gyro/st_gyro_spi.c
    +++ b/drivers/iio/gyro/st_gyro_spi.c
    @@ -60,7 +60,6 @@ static const struct spi_device_id st_gyr
    { LSM330DL_GYRO_DEV_NAME },
    { LSM330DLC_GYRO_DEV_NAME },
    { L3GD20_GYRO_DEV_NAME },
    - { L3GD20H_GYRO_DEV_NAME },
    { L3G4IS_GYRO_DEV_NAME },
    { LSM330_GYRO_DEV_NAME },
    {},



    \
     
     \ /
      Last update: 2014-03-04 21:41    [W:4.180 / U:0.608 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site