]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:24:58 +0000 (06:24 +0900)
commit96a474c35d0f361f8be368f287cdb550955eeb0a
treebb189f167f6d855481cdd778471c8b162a4e862d
parent65ad4ed983fd9ee0259d86391d6a53f78203918c
iio: accel: fix ADXL355 startup race condition

commit c92c1bc408e9e11ae3c7011b062fdd74c09283a3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/accel/adxl355_core.c