[PATCH v13 07/10] firmware: psci: Implement vendor-specific resets as reboot-mode
Dmitry Baryshkov
dmitry.baryshkov at oss.qualcomm.com
Mon Jul 28 02:44:20 PDT 2025
On Mon, Jul 28, 2025 at 06:53:14AM +0200, Krzysztof Kozlowski wrote:
> On 27/07/2025 18:24, Shivendra Pratap wrote:
> > +
> > +static int __init psci_init_vendor_reset(void)
> > +{
> > + struct reboot_mode_driver *reboot;
> > + struct device_node *np;
> > + int ret;
> > +
> > + np = of_find_node_by_path("/psci/reboot-mode");
>
>
> Why are you looking by full path, not by compatible? Is the ABI - above
> path - expressed anywhere?
PSCI node is required to have a node name of psci, it doesn't have MMIO,
so it resides in the root node and the reboot-mode is defined in the
previous patch. So, I'd assume, the path is defined.
However the question might be slightly different: why do we need a
separate initcall for reboot handling? The reasons for that need to be
documented in the commit message.
--
With best wishes
Dmitry
More information about the linux-arm-kernel
mailing list