summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure
diff options
context:
space:
mode:
authorQuentin Schulz2017-03-21 16:52:14 +0100
committerJonathan Cameron2017-03-25 17:36:25 +0100
commit4bdc9029685ac03be50b320b29691766d2326c2b (patch)
treecf7a68dce085db6da6e82b92a4c2170384d5704b /drivers/iio/pressure
parentiio: cros_ec_sensors: Fix return value to get raw and calibbias data. (diff)
downloadkernel-qcow2-linux-4bdc9029685ac03be50b320b29691766d2326c2b.tar.gz
kernel-qcow2-linux-4bdc9029685ac03be50b320b29691766d2326c2b.tar.xz
kernel-qcow2-linux-4bdc9029685ac03be50b320b29691766d2326c2b.zip
iio: bmg160: reset chip when probing
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> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure')
0 files changed, 0 insertions, 0 deletions