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

From: Stefan Agner
Date: Mon Oct 14 2019 - 08:07:52 EST


Hi Sudeep,


On 2019-10-14 12:07, Sudeep Holla wrote:
> 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.

Oh thanks for the pointer! Interesting timing :-)

--
Stefan

>
> --
> Regards,
> Sudeep
>
> [1]
> https://lore.kernel.org/linux-arm-kernel/20191002131228.4085560-1-thierry.reding@xxxxxxxxx