Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1695104 > unrolled thread

Re: [PATCH v4] PM / suspend: Export pm_suspend_target_state

Started by"Rafael J. Wysocki" <rjw@rjwysocki.net>
First post2017-07-24 23:10 +0200
Last post2017-07-24 23:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v4] PM / suspend: Export pm_suspend_target_state "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-07-24 23:10 +0200

#1695104 — Re: [PATCH v4] PM / suspend: Export pm_suspend_target_state

From"Rafael J. Wysocki" <rjw@rjwysocki.net>
Date2017-07-24 23:10 +0200
SubjectRe: [PATCH v4] PM / suspend: Export pm_suspend_target_state
Message-ID<u6SM4-1Y8-57@gated-at.bofh.it>
On Monday, July 17, 2017 05:19:25 PM Florian Fainelli wrote:
> Have the core suspend/resume framework store the system-wide suspend
> state (suspend_state_t) we are about to enter, and expose it to drivers
> via pm_suspend_target_state in order to retrieve that. The state is
> assigned in suspend_devices_and_enter().
> 
> This is useful for platform specific drivers that may need to take a
> slightly different suspend/resume path based on the system's
> suspend/resume state being entered.
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> Changes in v4:
> - clear pm_suspend_target_state in Close label
> 
> Changes in v3:
> 
> - just export pm_suspend_target_state without a helper function
> 
> Changes in v2:
> 
> - rename platform_suspend_target_state() -> suspend_target_state()
> - directly export the suspend_state_t value and assign it in
>   suspend_devices_and_enter()

Applied, thanks!

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web