iio: pressure: hsc030pa add mandatory delay
authorPetre Rodan <petre.rodan@subdimension.ro>
Sun, 11 Feb 2024 07:56:36 +0000 (09:56 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 19 Feb 2024 19:32:22 +0000 (19:32 +0000)
commitdf3186e829c33e3c577e00e8b3faa25763a44bb0
treeab3e9c4b9853d636a460a3f9b2e7da9b5bc2f9a2
parentb0e42c9e932323d340d9ec000c2ee06610386a80
iio: pressure: hsc030pa add mandatory delay

Add a mandatory 2ms delay between consecutive chip reads.

A Technical Note pdf specifies that the measurement cycle in these
chips takes around 1.26ms. By adding this 2ms delay we make sure that
we never get stale measurements.

For more details, please see "Figure 1" in the pdf below:

https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/common/documents/sps-siot-sleep-mode-technical-note-008286-1-en-ciid-155793.pdf

Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Link: https://lore.kernel.org/r/20240211075645.28777-6-petre.rodan@subdimension.ro
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/hsc030pa.h
drivers/iio/pressure/hsc030pa_i2c.c
drivers/iio/pressure/hsc030pa_spi.c