Dell Edge 300x IoT Gateways have a relative humidity sensor hts221. The sensor stops working (and reports stale values) after the system resumes from suspend-to-ram/suspend-to-disk PM states.
== Fix ==
AV_CONF register (RH & TEMP. oversampling ratio's) and CTRL1 register (ODR & BDU settings) values are lost after suspend.
While the change in AV_CONF updates the sensor resolution modes (overriding the user configuration before the device went to suspend); loss of the contents of the CTRL1 register leads to failure in reading sensor
This patch restores the AV_CONF & CTRL1 registers after
However, the issue is only affecting the Dell GW and not ST micro devel. boards.
== Risk of Regression ==
Low.Tthe bug affects only the Dell GW and the patch is being carried in linux-oem (4.15.y) since last 2 years without any regression.
This bug is for tracking purposes only, please don't triage.
[SRU Justification]
[Impact]
Dell Edge 300x IoT Gateways have a relative humidity sensor hts221. The sensor stops working (and reports stale values) after the system resumes from suspend- to-ram/ suspend- to-disk PM states.
== Fix ==
AV_CONF register (RH & TEMP. oversampling ratio's) and CTRL1 register (ODR & BDU settings) values are lost after suspend.
While the change in AV_CONF updates the sensor resolution modes (overriding the user configuration before the device went to suspend); loss of the contents of the CTRL1 register leads to failure in reading sensor
This patch restores the AV_CONF & CTRL1 registers after
Already submitted upstream for both 4.17.y and 4.14.y (LTS) for review: /marc.info/ ?t=152455871600 007&r=1& w=2 /marc.info/ ?t=152506242000 001&r=1& w=2
4.17.y: https:/
4.14.y: https:/
However, the issue is only affecting the Dell GW and not ST micro devel. boards.
== Risk of Regression ==
Low.Tthe bug affects only the Dell GW and the patch is being carried in linux-oem (4.15.y) since last 2 years without any regression.
This bug is for tracking purposes only, please don't triage.