From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Subject: suggestion on resumption Date: Thu, 26 Nov 2009 22:59:59 +0100 Message-ID: <200911262259.59152.oliver@neukum.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: "Rafael J. Wysocki" , Alan Stern , linux-pm@lists.linux-foundation.org List-Id: linux-pm@vger.kernel.org Hi, using the USB autosuspend framework I've often faced characteristic problems coding resume() methods. This has led me to an idea. Resume() would be much easier to code if I knew about the reason of resumption, especially about the code path resume() is called in. I wonder whether we could introduce a message argument to resume and give it a few bits from the caller. Regards Oliver