]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: adxl372: Perform a reset at start up
authorStefan Popa <stefan.popa@analog.com>
Tue, 10 Sep 2019 14:44:46 +0000 (17:44 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Oct 2019 18:11:25 +0000 (19:11 +0100)
commit83f335f891967b9e34f3faf583c9f60e75c4729c
treec3d04567183c34b2a68f515e174f14f6185c25df
parent1f1eac99961e809871932fdb9d3deaf430738359
iio: accel: adxl372: Perform a reset at start up

We need to perform a reset a start up to make sure that the chip is in a
consistent state. This reset also disables all the interrupts which
should only be enabled together with the iio buffer. Not doing this, was
sometimes causing unwanted interrupts to trigger.

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Fixes: e7526a60ae64 ("iio:adxl372: Add FIFO and interrupts support")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl372.c