Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761783AbZATBh3 (ORCPT ); Mon, 19 Jan 2009 20:37:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752314AbZATBhM (ORCPT ); Mon, 19 Jan 2009 20:37:12 -0500 Received: from cantor.suse.de ([195.135.220.2]:45390 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751080AbZATBhL (ORCPT ); Mon, 19 Jan 2009 20:37:11 -0500 Date: Mon, 19 Jan 2009 17:36:02 -0800 From: Greg KH To: "Rafael J. Wysocki" Cc: Alan Stern , Andrew Morton , Andrey Borzenkov , LKML , USB list , pm list , Christian Borntraeger , Zdenek Kabelac , Ingo Molnar , Jeff Chua Subject: Re: [PATCH] USB: Fix suspend-resume of PCI USB controllers Message-ID: <20090120013602.GA8377@suse.de> References: <200901200126.57839.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200901200126.57839.rjw@sisk.pl> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1544 Lines: 37 On Tue, Jan 20, 2009 at 01:26:56AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit a0d4922da2e4ccb0973095d8d29f36f6b1b5f703 > (USB: fix up suspend and resume for PCI host controllers) attempted > to fix the suspend-resume of PCI USB controllers, but unfortunately > it did that incorrectly and interrupts are left enabled by the USB > controllers' ->suspend_late() callback as a result. This leads to > serious problems during suspend which are very difficult to debug. > > Fix the issue by removing the ->suspend_late() callback of PCI > USB controllers and moving the code from there to the ->suspend() > callback executed with interrupts enabled. Additionally, make > the ->resume() callback of PCI USB controllers execute > pci_enable_wake(dev, PCI_D0, false) to disable wake-up from the > full power state (PCI_D0). > > Signed-off-by: Rafael J. Wysocki > Tested-by: Andrey Borzenkov > Tested-by: "Jeff Chua" > Cc: Alan Stern > Cc: Andrew Morton > Cc: Christian Borntraeger > Cc: "Zdenek Kabelac" > Cc: Ingo Molnar Alan, does this look ok for you? thanks, greg k-h -- 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/