RE: [PATCH] firmware: arm_scmi: power_control: support suspend command
From: Peng Fan
Date: Tue Apr 16 2024 - 08:26:35 EST
Hi Sudeep,
> Subject: Re: [PATCH] firmware: arm_scmi: power_control: support suspend
> command
>
> On Mon, Apr 15, 2024 at 06:11:41PM +0800, Peng Fan (OSS) wrote:
> > From: Peng Fan <peng.fan@xxxxxxx>
> >
> > Support System suspend notification. Using a work struct to call
> > pm_suspend. There is no way to pass suspend level to pm_suspend, so
> > use MEM as of now.
> >
>
> While the change itself is simple and no-controversial, I am bit worried
> about:
>
> 1. The choice of S2R(MEM) by default - not sure if different system
> prefer different things. The userspace can configure whatever default
> behaviour expected as S2R IIUC, so should be OK. I need to check though.
>
> 2. The userspace needs to keep the wakeup source enabled always which
> I need to check if it is feasible on all the platforms. If wakeups
> are not configured properly and suspend is triggered, the system can
> never resume back.
>
> We may need to mention above points at-least as part of commit log.
ok, I will add the info you listed in V2 commit log.
I would
> wait for some feedback from SCMI users.
Agree.
Thanks,
Peng.
>
> --
> Regards,
> Sudeep