Skip to content

Commit a065771

Browse files
ciocca-djic23
authored andcommitted
iio:gyro: bug on L3GD20H gyroscope support
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> Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 1463a16 commit a065771

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

drivers/iio/gyro/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ config IIO_ST_GYRO_3AXIS
7070
select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
7171
help
7272
Say yes here to build support for STMicroelectronics gyroscopes:
73-
L3G4200D, LSM330DL, L3GD20, L3GD20H, LSM330DLC, L3G4IS, LSM330.
73+
L3G4200D, LSM330DL, L3GD20, LSM330DLC, L3G4IS, LSM330.
7474

7575
This driver can also be built as a module. If so, these modules
7676
will be created:

drivers/iio/gyro/st_gyro.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#define LSM330DL_GYRO_DEV_NAME "lsm330dl_gyro"
2020
#define LSM330DLC_GYRO_DEV_NAME "lsm330dlc_gyro"
2121
#define L3GD20_GYRO_DEV_NAME "l3gd20"
22-
#define L3GD20H_GYRO_DEV_NAME "l3gd20h"
2322
#define L3G4IS_GYRO_DEV_NAME "l3g4is_ui"
2423
#define LSM330_GYRO_DEV_NAME "lsm330_gyro"
2524

drivers/iio/gyro/st_gyro_core.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,10 @@ static const struct st_sensors st_gyro_sensors[] = {
167167
.wai = ST_GYRO_2_WAI_EXP,
168168
.sensors_supported = {
169169
[0] = L3GD20_GYRO_DEV_NAME,
170-
[1] = L3GD20H_GYRO_DEV_NAME,
171-
[2] = LSM330D_GYRO_DEV_NAME,
172-
[3] = LSM330DLC_GYRO_DEV_NAME,
173-
[4] = L3G4IS_GYRO_DEV_NAME,
174-
[5] = LSM330_GYRO_DEV_NAME,
170+
[1] = LSM330D_GYRO_DEV_NAME,
171+
[2] = LSM330DLC_GYRO_DEV_NAME,
172+
[3] = L3G4IS_GYRO_DEV_NAME,
173+
[4] = LSM330_GYRO_DEV_NAME,
175174
},
176175
.ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
177176
.odr = {

drivers/iio/gyro/st_gyro_i2c.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ static const struct i2c_device_id st_gyro_id_table[] = {
5555
{ LSM330DL_GYRO_DEV_NAME },
5656
{ LSM330DLC_GYRO_DEV_NAME },
5757
{ L3GD20_GYRO_DEV_NAME },
58-
{ L3GD20H_GYRO_DEV_NAME },
5958
{ L3G4IS_GYRO_DEV_NAME },
6059
{ LSM330_GYRO_DEV_NAME },
6160
{},

drivers/iio/gyro/st_gyro_spi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ static const struct spi_device_id st_gyro_id_table[] = {
5454
{ LSM330DL_GYRO_DEV_NAME },
5555
{ LSM330DLC_GYRO_DEV_NAME },
5656
{ L3GD20_GYRO_DEV_NAME },
57-
{ L3GD20H_GYRO_DEV_NAME },
5857
{ L3G4IS_GYRO_DEV_NAME },
5958
{ LSM330_GYRO_DEV_NAME },
6059
{},

0 commit comments

Comments
 (0)