[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151115154612.GA20981@amd>
Date: Sun, 15 Nov 2015 16:46:12 +0100
From: Pavel Machek <pavel@....cz>
To: Grygorii Strashko <grygorii.strashko@...com>
Cc: "Rafael J. Wysocki" <rjw@...ysocki.net>,
Alan Stern <stern@...land.harvard.edu>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-pm@...r.kernel.org, Len Brown <len.brown@...el.com>,
linux-kernel@...r.kernel.org,
Thierry Reding <thierry.reding@...il.com>
Subject: Re: [PATCH v3] PM / sleep: prohibit devices probing during
suspend/hibernation
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@...land.harvard.edu>
> Cc: Rafael J. Wysocki <rjw@...ysocki.net>
> Cc: Thierry Reding <thierry.reding@...il.com>
> Signed-off-by: Grygorii Strashko <grygorii.strashko@...com>
Acked-by: Pavel Machek <pavel@....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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists