iio: humidity: hdc100x: Add margin to the conversion time
authorChris Lesiak <chris.lesiak@licor.com>
Mon, 14 Jun 2021 14:18:20 +0000 (09:18 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 24 Jul 2021 17:13:02 +0000 (18:13 +0100)
commit84edec86f449adea9ee0b4912a79ab8d9d65abb7
tree860cc54ba112efb05389834b0e5776733bb9a692
parent14a30238ecb8dcf52a9e2be514414e3ec443b536
iio: humidity: hdc100x: Add margin to the conversion time

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: 4839367d99e3 ("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>
drivers/iio/humidity/hdc100x.c