lkml.org 
[lkml]   [2015]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v3] PM / sleep: prohibit devices probing during suspend/hibernation
Date
On Tuesday, November 10, 2015 11:42:34 AM Grygorii Strashko wrote:
> It is unsafe [1] if probing of devices will happen during suspend or
> hibernation and system behavior will be unpredictable in this case.
> So, let's prohibit device's probing in dpm_prepare() and defer their
> probing instead. The normal behavior will be restored in
> dpm_complete().
>
> This patch introduces new DD core APIs:
> device_block_probing()
> It will disable probing of devices and defer their probes instead.
> device_unblock_probing()
> It will restore normal behavior and trigger re-probing of deferred
> devices.
>
> [1] https://lkml.org/lkml/2015/9/11/554
> Cc: Alan Stern <stern@rowland.harvard.edu>
> Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
> Cc: Thierry Reding <thierry.reding@gmail.com>
> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>

Patch queued up for v4.5, thanks!

Rafael



\
 
 \ /
  Last update: 2015-12-02 03:01    [W:0.251 / U:0.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site