Re: [PATCH] drivers: firmware: psci: use kernel restart handler functionality

From: Sudeep Holla
Date: Mon Oct 14 2019 - 06:08:41 EST

On Sat, Oct 12, 2019 at 11:47:35PM +0200, Stefan Agner wrote:
> From: Stefan Agner <stefan.agner@xxxxxxxxxxx>
> Use the kernels restart handler to register the PSCI system reset
> capability. The restart handler use notifier chains along with
> priorities. This allows to use restart handlers with higher priority
> (in case available) while still supporting PSCI.
> Since the ARM handler had priority over the kernels restart handler
> before this patch, use a slightly elevated priority of 160 to make
> sure PSCI is used before most of the other handlers are called.

There's an attempt(rather pull request[1]) to consolidate these into new
system power/restart handler.