]> www.infradead.org Git - users/dwmw2/linux.git/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:59:52 +0000 (08:59 +0200)
commitc1ec7d52a218d1efe7d6a7c3dbafb3d3022392c9
treeb553074738ab8daa21c54407831caf9ee60c5d78
parent42caf44906d6de02c4649e98e4a8bd03c4c53fa1
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