Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261205AbUCCWwN (ORCPT ); Wed, 3 Mar 2004 17:52:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261221AbUCCWwN (ORCPT ); Wed, 3 Mar 2004 17:52:13 -0500 Received: from gate.crashing.org ([63.228.1.57]:18374 "EHLO gate.crashing.org") by vger.kernel.org with ESMTP id S261205AbUCCWwK (ORCPT ); Wed, 3 Mar 2004 17:52:10 -0500 Subject: Re: Resume only part of device tree? From: Benjamin Herrenschmidt To: Nigel Cunningham Cc: Linux Kernel Mailing List In-Reply-To: <1078344202.3203.22.camel@calvin.wpcb.org.au> References: <1078344202.3203.22.camel@calvin.wpcb.org.au> Content-Type: text/plain Message-Id: <1078353622.15320.25.camel@gaston> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 04 Mar 2004 09:40:23 +1100 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 974 Lines: 25 On Thu, 2004-03-04 at 07:03, Nigel Cunningham wrote: > Hi all. > > Is there any existing code in the device model that supports resuming a > part of the device tree? For Suspend2, I'm wanting to resume storage > devices (and their parents) part way through resuming, and other drivers > later. What is your exact goal ? Not resuming all devices when writing the state to the swap partition ? You really need to resume it all at this point. However, the optimisation that can be done is for some drivers to not put the HW to sleep on a swsusp transition, only freeze the state. I did something like that in IDE though that doesn't always work well due our "state" paremeter passed down to drivers not beeing consistent. Ben. - 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/