diff options
author | Quentin Schulz <quentin.schulz@free-electrons.com> | 2017-03-21 16:52:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-12 12:38:33 +0200 |
commit | 8ff7eb4bc8b8cf0416e0746dcdb1545fc6869e98 (patch) | |
tree | 68b5c7604dd41fff88983ad0f945d8daf095b953 /Documentation/percpu-rw-semaphore.txt | |
parent | d4ad442b9982fba9eab0f9003c8cd185a1afeff6 (diff) |
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>
Diffstat (limited to 'Documentation/percpu-rw-semaphore.txt')
0 files changed, 0 insertions, 0 deletions