Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752995Ab2BQPHq (ORCPT ); Fri, 17 Feb 2012 10:07:46 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:58591 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751871Ab2BQPHo (ORCPT ); Fri, 17 Feb 2012 10:07:44 -0500 Date: Fri, 17 Feb 2012 10:07:42 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: "Zhang, Rui" cc: "Rafael J. Wysocki" , "Lin, Ming M" , Jeff Garzik , Tejun Heo , Len Brown , "linux-kernel@vger.kernel.org" , "linux-ide@vger.kernel.org" , "linux-scsi@vger.kernel.org" , "linux-pm@vger.kernel.org" Subject: RE: [RFC PATCH 2/6] ACPI: Reference devices in ACPI Power Resource In-Reply-To: <744357E9AAD1214791ACBA4B0B90926305BFDC@SHSMSX101.ccr.corp.intel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1398 Lines: 32 On Fri, 17 Feb 2012, Zhang, Rui wrote: > > Do you basically want > > the ZPODD always to be suspended and resumed along with the ATA port, > > No. ZPODD suspends itself, which put ZPODD to a SCSI low power state (NOT power off/D3_COLD). > And then it is the "Runtime PM core" that suspends ATA port after ZPODD being suspended. > And the .runtime_suspend callback for ATA port actually turns off the ZPODD power. > > During resume, ATA port is resumed first because of the ACPI wakeup event. > But in fact, this wakeup event should be read as "ZPODD remote wakeup signal", thus runtime resume request is sent to ZPODD, done by Patch 3/6. > > > or should it be possible to suspend the ZPODD while the port remains > > running? > > > Sure, but the power is still on at this time. Then maybe you can use pm_runtime_no_callbacks() for the ZPODD device. It's explained in Documentation/power/runtime_pm.txt, and I use it for USB interfaces. The idea is that the ZPODD will never receive any runtime PM callbacks from the PM core. Instead the ATA port callback routines will be responsible for power management of the ZPODD device. Alan Stern -- 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/