[PATCH 0/1] SCMI SystemPower Control driver
From: Cristian Marussi
Date: Wed Sep 16 2020 - 06:24:58 EST
Hi all,
This patch, building on top of the recently introduced SCMI System Power
Protocol support, adds a new SCMI driver which, registering for SCMI System
Power notifications, acts accordingly to satisfy such SCMI plaform
system-wide transition requests (which can be of forceful or graceful kind)
In order to comply with graceful requests, and co-operate with userspace
entities to drive a clean shutdown/reboot, the logic of the driver relies
on the same orderly_* API methods used by ACPI when handling ACPI Shutdown
bus events.
As an alternative method to tunnel graceful requests to userspace, though,
it is possible to configure, via module parameters, a specific signal to be
sent to CAD pid.
It is currently based on for-next/scmi [1] on top of:
commit 66d90f6ecee7 ("firmware: arm_scmi: Enable building as a single
module")
Thanks,
Cristian
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/log/?h=for-next/scmi
Cristian Marussi (1):
firmware: arm_scmi: Add SCMI System Power Control driver
drivers/firmware/Kconfig | 12 +
drivers/firmware/arm_scmi/Makefile | 1 +
.../firmware/arm_scmi/scmi_power_control.c | 387 ++++++++++++++++++
3 files changed, 400 insertions(+)
create mode 100644 drivers/firmware/arm_scmi/scmi_power_control.c
--
2.17.1