From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752143AbbKOPqR (ORCPT ); Sun, 15 Nov 2015 10:46:17 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55542 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751962AbbKOPqQ (ORCPT ); Sun, 15 Nov 2015 10:46:16 -0500 Date: Sun, 15 Nov 2015 16:46:12 +0100 From: Pavel Machek To: Grygorii Strashko Cc: "Rafael J. Wysocki" , Alan Stern , Greg Kroah-Hartman , linux-pm@vger.kernel.org, Len Brown , linux-kernel@vger.kernel.org, Thierry Reding Subject: Re: [PATCH v3] PM / sleep: prohibit devices probing during suspend/hibernation Message-ID: <20151115154612.GA20981@amd> References: <1447148554-18401-1-git-send-email-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1447148554-18401-1-git-send-email-grygorii.strashko@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Cc: Rafael J. Wysocki > Cc: Thierry Reding > Signed-off-by: Grygorii Strashko Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html