lkml.org 
[lkml]   [2022]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/3] Add ARM SCMI Powercap driver
Date
Hi all,

this short series builts on top of recently introduced SCMI v3.1 Powercap
protocol to implement an ARM SCMI Powercap driver which takes care to
expose via the Powercap framework all the SCMI Powercap zones that have
been discovered asking the SCMI platform firmware.

Basic testing has been performed against an emulated SCMI platform
supporting SCMIv3.1 Powercap protocol using powercap-utils.

A couple of fixes spotted with Smatch by Dan are queued on top of the
driver itself; these may have to be squashed finally into the driver itself
but for now I have just added them here as patches on top, for clarity and
to preserve authorship.

The series is based on sudeep/for-next/scmi [1] on top of

commit 40d30cf680cb ("firmware: arm_scmi: Harmonize SCMI tracing message format")

Thanks,
Cristian
---
v1 --> v2
- using clamp_t() to simplify normalizations
- cleanup style in block of var declarations
- refactor scale conversions code
- add MAINTAINER entry
- refactored normalizations and added dev_dbg

Cristian Marussi (1):
powercap: arm_scmi: Add SCMI Powercap based driver

Dan Carpenter (2):
powercap: arm_scmi: Fix signedness bug in probe
powercap: arm_scmi: Fix a NULL vs IS_ERR() bug

MAINTAINERS | 1 +
drivers/powercap/Kconfig | 13 +
drivers/powercap/Makefile | 1 +
drivers/powercap/arm_scmi_powercap.c | 509 +++++++++++++++++++++++++++
4 files changed, 524 insertions(+)
create mode 100644 drivers/powercap/arm_scmi_powercap.c

--
2.32.0

\
 
 \ /
  Last update: 2022-09-06 17:43    [W:0.094 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site