drivers: iio: temperature: Add delay after the addressed reset command in mlx90632.c
authorSlaveyko Slaveykov <sis@melexis.com>
Wed, 16 Dec 2020 11:57:20 +0000 (13:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 10:55:12 +0000 (11:55 +0100)
commitdbecf66313442997dc8bd494bebe698ff571a9da
treeeb0d1a698ed19588abfb15b94026b7d7da76330c
parent5b136903db0e0fadd5a1fb2f386b95d02ffba503
drivers: iio: temperature: Add delay after the addressed reset command in mlx90632.c

commit cf5b1385d748b2f91b0c05bb301fcaf9bdbad385 upstream.

After an I2C reset command, the mlx90632 needs some time before
responding to other I2C commands. Without that delay, there is a chance
that the I2C command(s) after the reset will not be accepted.

Signed-off-by: Slaveyko Slaveykov <sis@melexis.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Crt Mori <cmo@melexis.com>
Fixes: e02472f74a81 ("iio:temperature:mlx90632: Adding extended calibration option")
Link: https://lore.kernel.org/r/20201216115720.12404-2-sis@melexis.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/temperature/mlx90632.c