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)
commitd9a997bd4d762d5bd8cc548d762902f58b5e0a74
treec3d04567183c34b2a68f515e174f14f6185c25df
parent62df81b74393079debf04961c48cb22268fc5fab
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: f4f55ce38e5f ("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