firmware: xilinx: Add sysfs to set shutdown scope
authorRajan Vaja <rajan.vaja@xilinx.com>
Fri, 24 Apr 2020 20:58:06 +0000 (13:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2020 13:46:54 +0000 (15:46 +0200)
commitb3ae24c44848c6403fb2333d7cbe494565058352
tree094fd0f28d0f69a0b9d5753167f0139264f9c46e
parentfdd2ed88ca971376669bce145f1a1bcf028d775e
firmware: xilinx: Add sysfs to set shutdown scope

The Linux shutdown functionality implemented via PSCI system_off does
not include an option to set a scope, i.e. which parts of the system to
shut down.

This patch creates sysfs that allows to set the shutdown scope for the
next shutdown request. When the next shutdown is performed, the platform
specific portion of PSCI-system_off can use the chosen shutdown scope.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Stefan Krsmanovic <stefan.krsmanovic@aggios.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Jolly Shah <jolly.shah@xilinx.com>
Link: https://lore.kernel.org/r/1587761887-4279-25-git-send-email-jolly.shah@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
drivers/firmware/xilinx/zynqmp.c
include/linux/firmware/xlnx-zynqmp.h