]> git.itanic.dy.fi Git - linux-stable/commit
iio: accel: mma8452: ignore the return value of reset operation
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 15 Jun 2022 11:31:58 +0000 (19:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 06:58:48 +0000 (08:58 +0200)
commit1ad6d668543d4a9d68e6284d658e878c26afbab5
tree599b52fb768ba562a1fa4f1e149cc73151212e37
parenta391bced840437f9161ed09a4851f80a4212aa42
iio: accel: mma8452: ignore the return value of reset operation

commit bf745142cc0a3e1723f9207fb0c073c88464b7b4 upstream.

On fxls8471, after set the reset bit, the device will reset immediately,
will not give ACK. So ignore the return value of this reset operation,
let the following code logic to check whether the reset operation works.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Fixes: ecabae713196 ("iio: mma8452: Initialise before activating")
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/1655292718-14287-1-git-send-email-haibo.chen@nxp.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/mma8452.c