kernel_optimize_test/drivers/iio/humidity
Chris Lesiak 632279e505 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:59:04 +02:00
..
am2315.c
dht11.c
hdc100x.c iio: humidity: hdc100x: Add margin to the conversion time 2021-08-18 08:59:04 +02:00
hdc2010.c
hid-sensor-humidity.c
hts221_buffer.c
hts221_core.c
hts221_i2c.c
hts221_spi.c
hts221.h
htu21.c
Kconfig
Makefile
si7005.c
si7020.c