On Thu, Feb 23, 2017 at 05:06:53PM +0000, Harald Geyer wrote:
If a supply is provided via DT, release the supply whenever we don't read
the sensor. Also use notifications to track the actual status of the
supply to ensure that we meet the timing requirements stated in the
datasheet.
This change is motivated by the hope that these sensors will work more
reliably if power-cycled regularly.
Signed-off-by: Harald Geyer <redacted>
---
This is an RFC this time, because I want to run extensive long term tests
with DHT11 and DHT22 before officially proposing this for inclusion. I
have learned my lessons with this quirky bits of HW... :(
However since this will take a lot of time (mostly physical, but also
man hours), I'd like to get review comments now instead of risking a
second iteration of long term tests.
.../devicetree/bindings/iio/humidity/dht11.txt | 10 ++++
Acked-by: Rob Herring <redacted>
drivers/iio/humidity/dht11.c | 57 ++++++++++++++++++++--
2 files changed, 64 insertions(+), 3 deletions(-)