Re: [PATCH 0/2] reboot-mode: Expose sysfs for registered reboot modes
From: Bartosz Golaszewski
Date: Tue Nov 18 2025 - 05:01:11 EST
On Mon, 17 Nov 2025 at 19:05, Shivendra Pratap
<shivendra.pratap@xxxxxxxxxxxxxxxx> wrote:
>
>
>
> On 11/17/2025 6:33 PM, Bartosz Golaszewski wrote:
> > On Sun, 16 Nov 2025 at 16:20, Shivendra Pratap
> > <shivendra.pratap@xxxxxxxxxxxxxxxx> wrote:
> >>
> >> The reboot-mode framework provides infrastructure for drivers that want
> >> to implement a userspace reboot command interface. However, there is
> >> currently no standardized way for userspace to discover the list of
> >> supported commands at runtime. This series introduces a sysfs interface
> >> in the reboot-mode framework to expose the list of supported reboot-mode
> >> commands to userspace. This will enable userspace tools to query
> >> available reboot modes using the sysfs interface.
> >>
> >> Example:
> >> cat /sys/class/reboot-mode/<driver-name>/reboot_modes
> >>
> >> The series consists of two patches:
> >> 1. power: reset: reboot-mode: Expose sysfs for registered reboot_modes
> >> 2. Documentation: ABI: Add sysfs-class-reboot-mode-reboot_modes
> >>
> >> These patches were previously being reviewed as part of “vendor resets
> >> for PSCI SYSTEM_RESET2”, until v17. Following the suggestions from
> >> Bjorn, the reboot-mode sysfs patches have been split into a separate
> >> series here, for focused discussions and better alignment.
> >>
> >> Previous discussion on these patches:
> >> https://lore.kernel.org/all/20251109-arm-psci-system_reset2-vendor-reboots-v17-5-46e085bca4cc@xxxxxxxxxxxxxxxx/
> >> https://lore.kernel.org/all/20251109-arm-psci-system_reset2-vendor-reboots-v17-4-46e085bca4cc@xxxxxxxxxxxxxxxx/
> >>
> >
> > When doing a split like this, please keep the versioning going. This
> > should be v18.
>
> Focus of that original series was "Implementing vendor resets for PSCI SYSTEM_RESET2".
> These two patches have been split out of that series. The original series will
> still continue to its next version(v18) after addressing all other reviews.
> So i thought that these two patches can be split out to v1?
>
No, they both continue at v18 so that the origin of this smaller
series is contained.
Bartosz