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


Groups > linux.kernel > #1269711

Re: [PATCH v3] PM / sleep: prohibit devices probing during suspend/hibernation

From Pavel Machek <pavel@ucw.cz>
Newsgroups linux.kernel
Subject Re: [PATCH v3] PM / sleep: prohibit devices probing during suspend/hibernation
Date 2015-11-15 16:50 +0100
Message-ID <qv7IZ-3fg-5@gated-at.bofh.it> (permalink)
References <qtdIR-3jG-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue 2015-11-10 11:42:34, 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>

Acked-by: Pavel Machek <pavel@ucw.cz>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v3] PM / sleep: prohibit devices probing during suspend/hibernation Grygorii Strashko <grygorii.strashko@ti.com> - 2015-11-10 10:50 +0100
  Re: [PATCH v3] PM / sleep: prohibit devices probing during  suspend/hibernation Pavel Machek <pavel@ucw.cz> - 2015-11-15 16:50 +0100

csiph-web