]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: fix ADXL355 startup race condition
authorValek Andrej <andrej.v@skyrain.eu>
Tue, 14 Oct 2025 07:13:44 +0000 (09:13 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Oct 2025 13:07:16 +0000 (14:07 +0100)
commitc92c1bc408e9e11ae3c7011b062fdd74c09283a3
tree9d6e9a41fbd7266e02692c5fabc7d486315e0e82
parente2cc390a6629c76924a2740c54b144b9b28fca59
iio: accel: fix ADXL355 startup race condition

There is an race-condition where device is not full working after SW reset.
Therefore it's necessary to wait some time after reset and verify shadow
registers values by reading and comparing the values before/after reset.
This mechanism is described in datasheet at least from revision D.

Fixes: 12ed27863ea3 ("iio: accel: Add driver support for ADXL355")
Signed-off-by: Valek Andrej <andrej.v@skyrain.eu>
Signed-off-by: Kessler Markus <markus.kessler@hilti.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl355_core.c