Re: [PATCH v23 07/13] power: reset: Add psci-reboot-mode driver
Bartosz Golaszewski <[email protected]>
| Newsgroups | dev.linux.lists.mfd,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm |
|---|---|
| Message-ID | <CAMRc=MdBC98zwc3jQwXgxMTEp_yBvjtU9cNQeRaTSsbZody3Zg@mail.gmail.com> |
On Tue, 14 Jul 2026 19:16:35 +0200, Shivendra Pratap <[email protected]> said: > PSCI supports different types of resets like SYSTEM_RESET, SYSTEM_RESET2 > ARCH WARM reset and SYSTEM_RESET2 vendor-specific resets. Currently > there is no common driver that handles all supported psci resets at one > place. Additionally, there is no common mechanism to issue the supported > psci resets from userspace. > > Add a psci-reboot-mode driver, and define two types of PSCI resets, > predefined-resets and vendor-specific resets. Predefined-resets are > defined by psci driver and vendor-specific resets are defined by SoC > vendors, under the psci:reboot-mode node of SoC device tree. > > Register the driver with the reboot-mode framework to interface these > resets to userspace. When userspace initiates a supported command, pass > the reset arguments to the PSCI driver to enable command-based reset. > > This change allows userspace to issue supported PSCI reset commands > using the standard reboot system calls while enabling SoC vendors to > define their specific resets for PSCI. > > Signed-off-by: Shivendra Pratap <[email protected]> > --- Reviewed-by: Bartosz Golaszewski <[email protected]>