From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhang Rui Subject: Re: [RFC][PATCH 5/7] PM: Asynchronous suspend and resume of PCI devices Date: Tue, 18 Aug 2009 14:57:08 +0800 Message-ID: <1250578628.5351.64.camel@rzhang-dt> References: <200908122218.13975.rjw@sisk.pl> <200908170215.21173.rjw@sisk.pl> <200908170220.18874.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mga02.intel.com ([134.134.136.20]:36075 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751590AbZHRG6n (ORCPT ); Tue, 18 Aug 2009 02:58:43 -0400 In-Reply-To: <200908170220.18874.rjw@sisk.pl> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: linux-pm , linux-acpi , Linux Kernel Mailing List , Len Brown , Alan Stern , Arjan van de Ven , Greg KH On Mon, 2009-08-17 at 08:20 +0800, Rafael J. Wysocki wrote: > Set async_suspend for all PCI devices and PCIe port services. >=20 =EF=BB=BFAlan said that we can not break the resume order of the uhci/e= hci host controllers on some platforms. =46or example, 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHC= I Controller #2 (rev 02) 00:1a.7 must be resumed after 00:1a.0 and 00:1a.1 please refer to this thread: http://marc.info/?l=3Dlinux-acpi&m=3D122996117918188&w=3D2 So I'm afraid we can not suspend/resume the PCI devices in parallel, unless we add this off-tree dependency at the same time. thanks, rui > --- > drivers/input/serio/i8042.c | 2 ++ > drivers/pci/pci.c | 2 ++ > drivers/pci/pcie/portdrv_core.c | 1 + > 3 files changed, 5 insertions(+) >=20 > Index: linux-2.6/drivers/pci/pci.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- linux-2.6.orig/drivers/pci/pci.c > +++ linux-2.6/drivers/pci/pci.c > @@ -1409,6 +1409,8 @@ void pci_pm_init(struct pci_dev *dev) > } else { > dev->pme_support =3D 0; > } > + > + device_enable_async_suspend(&dev->dev, true); > } > =20 > /** > Index: linux-2.6/drivers/pci/pcie/portdrv_core.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- linux-2.6.orig/drivers/pci/pcie/portdrv_core.c > +++ linux-2.6/drivers/pci/pcie/portdrv_core.c > @@ -280,6 +280,7 @@ static void pcie_device_init(struct pci_ > dev_set_name(device, "%s:pcie%02x", > pci_name(parent), get_descriptor_id(port_type, service_type)); > device->parent =3D &parent->dev; > + device_enable_async_suspend(device, true); > } > =20 > /** -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html