[bionic] hts221 sensor stops working after resume from S3/S4

Bug #1863732 reported by Shrirang Bagul on 2020-02-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
High
Unassigned
Bionic
High
Unassigned

Bug Description

[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:
4.17.y: https://marc.info/?t=152455871600007&r=1&w=2
4.14.y: https://marc.info/?t=152506242000001&r=1&w=2

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.

linux-oem buglink: https://bugs.launchpad.net/bugs/1769658

This bug is for tracking purposes only, please don't triage.

description: updated
Changed in linux (Ubuntu Bionic):
status: New → Confirmed
importance: Undecided → High
description: updated

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1863732

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: bionic
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → High
Changed in linux (Ubuntu Bionic):
status: Confirmed → Fix Committed

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-bionic' to 'verification-done-bionic'. If the problem still exists, change the tag 'verification-needed-bionic' to 'verification-failed-bionic'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-bionic
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers