Skip to content

RFC Deprecate register_restart_handler()

Andrew Davis linux-arm-kernel linux-pm linux-spi lkml soc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5kernel/reboot: Deprecate register_restart_handler()include/linux/reboot.h kernel/reboot.c+9 -20 replies
2/5drivers/soc/litex: Use devm_register_restart_handler()drivers/soc/litex/litex_soc_ctrl.c+5 -182 replies
3/5power: reset: gpio-restart: Use devm_register_sys_off_handler()drivers/power/reset/gpio-restart.c+9 -250 replies
4/5spi: sprd: adi: Use devm_register_restart_handler()drivers/spi/spi-sprd-adi.c+8 -220 replies
5/5firmware: psci: Use register_sys_off_handler(SYS_OFF_MODE_RESTART)drivers/firmware/psci/psci.c+2 -80 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchGabriel Somlo
1/5
2/5R-b R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RFC 0/5] Deprecate register_restart_handler()

Hello all,

Explanation is in patch #1.

The rest of this series is a set of representative examples of converting away from the old API. They should be valid and can be taken by their respective maintainers even if patch #1 doesn't find acceptance.

Thanks,
Andrew

Andrew Davis (5):
kernel/reboot: Deprecate register_restart_handler() drivers/soc/litex: Use devm_register_restart_handler()
power: reset: gpio-restart: Use devm_register_sys_off_handler()
spi: sprd: adi: Use devm_register_restart_handler()
firmware: psci: Use register_sys_off_handler(SYS_OFF_MODE_RESTART)

 drivers/firmware/psci/psci.c       | 10 ++-------
 drivers/power/reset/gpio-restart.c | 34 ++++++++----------------------
 drivers/soc/litex/litex_soc_ctrl.c | 23 +++++---------------
 drivers/spi/spi-sprd-adi.c         | 30 +++++++-------------------
 include/linux/reboot.h             |  8 +++++--
 kernel/reboot.c                    |  3 +++
 6 files changed, 33 insertions(+), 75 deletions(-)
Signature · 1 line
2.39.2