linux-brain/drivers/iio/humidity
Chris Lesiak bcac522592 iio: humidity: hdc100x: Add margin to the conversion time
commit 84edec86f449adea9ee0b4912a79ab8d9d65abb7 upstream.

The datasheets have the following note for the conversion time
specification: "This parameter is specified by design and/or
characterization and it is not tested in production."

Parts have been seen that require more time to do 14-bit conversions for
the relative humidity channel.  The result is ENXIO due to the address
phase of a transfer not getting an ACK.

Delay an additional 1 ms per conversion to allow for additional margin.

Fixes: 4839367d99 ("iio: humidity: add HDC100x support")
Signed-off-by: Chris Lesiak <chris.lesiak@licor.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Link: https://lore.kernel.org/r/20210614141820.2034827-1-chris.lesiak@licor.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-18 08:56:56 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
am2315.c iio: humidity: am2315: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:38 +02:00
dht11.c Staging / IIO driver update for 5.3-rc1 2019-07-11 15:36:02 -07:00
hdc100x.c iio: humidity: hdc100x: Add margin to the conversion time 2021-08-18 08:56:56 +02:00
hid-sensor-humidity.c iio: hid-sensor-humidity: Fix alignment issue of timestamp channel 2021-03-24 11:26:42 +01:00
hts221.h iio:humidity:hts221 Fix alignment and data leak issues 2020-07-22 09:32:54 +02:00
hts221_buffer.c iio:humidity:hts221 Fix alignment and data leak issues 2020-07-22 09:32:54 +02:00
hts221_core.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
hts221_i2c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
hts221_spi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
htu21.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
si7005.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
si7020.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 491 2019-06-19 17:09:52 +02:00