From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268754AbUHLUsF (ORCPT ); Thu, 12 Aug 2004 16:48:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268755AbUHLUsF (ORCPT ); Thu, 12 Aug 2004 16:48:05 -0400 Received: from stat16.steeleye.com ([209.192.50.48]:31684 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S268754AbUHLUnA (ORCPT ); Thu, 12 Aug 2004 16:43:00 -0400 Subject: Re: [PATCH] SCSI midlayer power management From: James Bottomley To: Pavel Machek Cc: Benjamin Herrenschmidt , Nathan Bryant , Linux SCSI Reflector , Linux Kernel list , Jeff Garzik In-Reply-To: <20040812203729.GE14556@elf.ucw.cz> References: <411A1B72.1010302@optonline.net> <1092231462.2087.3.camel@mulgrave> <1092267400.2136.24.camel@gaston> <1092314892.1755.5.camel@mulgrave> <20040812131457.GB1086@elf.ucw.cz> <1092328173.2184.15.camel@mulgrave> <20040812191120.GA14903@elf.ucw.cz> <1092339247.1755.36.camel@mulgrave> <20040812202622.GD14556@elf.ucw.cz> <1092342716.2184.56.camel@mulgrave> <20040812203729.GE14556@elf.ucw.cz> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-9) Date: 12 Aug 2004 16:42:51 -0400 Message-Id: <1092343376.1755.61.camel@mulgrave> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2004-08-12 at 16:37, Pavel Machek wrote: > Can't you simply reuse bootup code? It will no longer be __init, > but it should make suspend/resume functions quite simple. Unfortunately, no that simply. Bootup is all about allocating these areas and initialising the card. Resume will be about initialising the card knowing the existing areas (and the data about the existing areas will have to be part of our persistent data on suspend). So, modifying the bootup to do something like if (in_resume) addr = read from suspend image else addr = dma_alloc_coherent(...) may work. > > to pick three drivers to do this for, that would be aic7xxx, aic79xx and > > sym_2? > > No idea, only SCSI host I owned was some 8-bit isa thing.... Well, someone who's interested needs to pick a driver. It's usually easier to persuade everyone to add the feature if there's an example to copy... James