firmware/psci: Switch to the sys-off handler API
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | kernel/reboot: Use the static sys-off handler for any prioritykernel/ | +4 | 1 reply | |
| 2/2 | firmware/psci: Switch to the sys-off handler APIdrivers/ | +6 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Dmitry Osipenko |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] firmware/psci: Switch to the sys-off handler API
I am interested in converting the axp20x PMIC driver to use the sys-off API for its poweroff handler, so it can be used as a fallback for the SBI poweroff handler on RISC-V. But the PSCI poweroff handler still uses pm_power_off, so done alone, this would cause the axp20x callback to be called first, before the PSCI poweroff handler.
In order to prevent this change in behavior, the PSCI poweroff handler needs to be converted to the sys-off API first, at a higher priority.
This series performs the conversion, after accounting for the fact that the PSCI poweroff handler is registered quite early during boot.
Samuel Holland (2):
kernel/reboot: Use the static sys-off handler for any priority firmware/psci: Switch to the sys-off handler API
drivers/firmware/psci/psci.c | 9 ++++++--- kernel/reboot.c | 10 ++++------ 2 files changed, 10 insertions(+), 9 deletions(-)
Signature · 1 line
2.37.3