public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Add support for tsens controller reinit via trustzone
@ 2022-07-24 12:24 Bhupesh Sharma
  2022-07-24 12:24 ` [PATCH v2 1/5] firmware: qcom: scm: Add support for tsens reinit workaround Bhupesh Sharma
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Bhupesh Sharma @ 2022-07-24 12:24 UTC (permalink / raw)
  To: linux-pm
  Cc: bhupesh.sharma, bhupesh.linux, linux-kernel, bjorn.andersson,
	konrad.dybcio, linux-arm-msm, daniel.lezcano, robh+dt, rafael,
	Amit Kucheria, Thara Gopinath

Changes since v1:
-----------------
- v1 can be viewed here: https://lore.kernel.org/linux-arm-msm/20220701145815.2037993-1-bhupesh.sharma@linaro.org/
- Addressed several comments from Bjorn regarding locking, serialization
  etc received on v1.
- Addressed Konrad's concerns about the tsens controller found on sm6375
  SoC which seems to start in a bad state or is disabled when entering
  the linux world.
- This series would depend on sm6375 tsens controller changes being
  added by Konrad. It is based on linux-next (master branch) tip.

Some versions of Qualcomm tsens controller might enter a
'bad state' causing sensor temperatures/interrupts status
to be in an 'invalid' state.

It is recommended to re-initialize the tsens controller
via trustzone (secure registers) using scm call(s) when that
happens.

This patchset adds the support for the same.

Cc: bjorn.andersson@linaro.org
Cc: Amit Kucheria <amitk@kernel.org>
Cc: Thara Gopinath <thara.gopinath@gmail.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-arm-msm@vger.kernel.org

Bhupesh Sharma (5):
  firmware: qcom: scm: Add support for tsens reinit workaround
  thermal: qcom: tsens: Add hooks for supplying platform specific reinit
    quirks
  thermal: qcom: tsens: Add driver support for re-initialization quirk
  thermal: qcom: tsens: Add reinit quirk support for tsens v2
    controllers
  thermal: qcom: tsens: Add reinit quirk support for sm6375 controller

 drivers/firmware/qcom_scm.c     |  15 +++
 drivers/firmware/qcom_scm.h     |   4 +
 drivers/thermal/qcom/tsens-v2.c |  15 +++
 drivers/thermal/qcom/tsens.c    | 213 ++++++++++++++++++++++++++++++++
 drivers/thermal/qcom/tsens.h    |  18 ++-
 include/linux/qcom_scm.h        |   2 +
 6 files changed, 266 insertions(+), 1 deletion(-)

-- 
2.35.3


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-08-03  5:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-24 12:24 [PATCH v2 0/5] Add support for tsens controller reinit via trustzone Bhupesh Sharma
2022-07-24 12:24 ` [PATCH v2 1/5] firmware: qcom: scm: Add support for tsens reinit workaround Bhupesh Sharma
2022-07-24 12:24 ` [PATCH v2 2/5] thermal: qcom: tsens: Add hooks for supplying platform specific reinit quirks Bhupesh Sharma
2022-07-24 12:24 ` [PATCH v2 3/5] thermal: qcom: tsens: Add driver support for re-initialization quirk Bhupesh Sharma
2022-07-25 23:10   ` kernel test robot
2022-07-26 11:38     ` Bhupesh Sharma
2022-07-27  7:31       ` [kbuild-all] " Chen, Rong A
2022-08-03  5:30         ` Bhupesh Sharma
2022-07-24 12:24 ` [PATCH v2 4/5] thermal: qcom: tsens: Add reinit quirk support for tsens v2 controllers Bhupesh Sharma
2022-07-24 12:24 ` [PATCH v2 5/5] thermal: qcom: tsens: Add reinit quirk support for sm6375 controller Bhupesh Sharma
2022-07-28 14:12   ` Konrad Dybcio
2022-08-03  5:32     ` Bhupesh Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox