[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b2fbba62-72c9-f21a-5aa1-f96291fddb3e@cogentembedded.com>
Date: Wed, 14 Mar 2018 18:57:51 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Geert Uytterhoeven <geert+renesas@...der.be>,
"Rafael J . Wysocki" <rjw@...ysocki.net>,
Pavel Machek <pavel@....cz>, Len Brown <len.brown@...el.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Marek Vasut <marek.vasut+renesas@...il.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>
Cc: linux-pm@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH/RFC 1/2] PM / wakeup: Add callback for wake-up change
notification
On 03/14/2018 02:26 PM, Geert Uytterhoeven wrote:
> Add a callback to inform a device that his wake-up setting has been
s/his/its/.
> changed. This allows a device to synchronize device configuration with
> an external user action.
>
> E.g. on systems using a Rohm BD9571MWV PMIC and a toggle accessory power
> switch, the system suspend procedure is:
> 1. Configure PMIC for DDR backup mode, which changes the role of the
> accessory power switch from a power to a wake-up switch,
> 2. Switch accessory power switch off, to prepare for system suspend,
> 3. Suspend system.
>
> Hence step 1 cannot be done in the PMIC's suspend callback, but it can
> be done in the new callback, in response to the user writing "enabled"
> to the PMIC's wakeup virtual file in sysfs.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
[...]
MBR, Sergei
Powered by blists - more mailing lists