android_kernel_oneplus_msm8998/drivers/iio/gyro
Quentin Schulz 8ff7eb4bc8 iio: bmg160: reset chip when probing
commit 4bdc9029685ac03be50b320b29691766d2326c2b upstream.

The gyroscope chip might need to be reset to be used.

Without the chip being reset, the driver stopped at the first
regmap_read (to get the CHIP_ID) and failed to probe.

The datasheet of the gyroscope says that a minimum wait of 30ms after
the reset has to be done.

This patch has been checked on a BMX055 and the datasheet of the BMG160
and the BMI055 give the same reset register and bits.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-12 12:38:33 +02:00
..
adis16080.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
adis16130.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
adis16136.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
adis16260.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
adxrs450.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
bmg160.h iio: bmg160: Separate i2c and core driver 2015-08-31 17:04:23 +01:00
bmg160_core.c iio: bmg160: reset chip when probing 2017-04-12 12:38:33 +02:00
bmg160_i2c.c iio: bmg160: Separate i2c and core driver 2015-08-31 17:04:23 +01:00
bmg160_spi.c iio: bmg160: Add SPI driver 2015-08-31 17:06:11 +01:00
hid-sensor-gyro-3d.c
itg3200_buffer.c
itg3200_core.c
Kconfig iio: bmg160: Add SPI driver 2015-08-31 17:06:11 +01:00
Makefile iio: bmg160: Add SPI driver 2015-08-31 17:06:11 +01:00
ssp_gyro_sensor.c
st_gyro.h
st_gyro_buffer.c
st_gyro_core.c iio: st_sensors: add debugfs register read hook 2015-08-16 10:51:25 +01:00
st_gyro_i2c.c
st_gyro_spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00