From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754077AbYJDVyx (ORCPT ); Sat, 4 Oct 2008 17:54:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755140AbYJDVyl (ORCPT ); Sat, 4 Oct 2008 17:54:41 -0400 Received: from ti-out-0910.google.com ([209.85.142.191]:40873 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755063AbYJDVyj (ORCPT ); Sat, 4 Oct 2008 17:54:39 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=eUG7+PHbJRz2DT1sgtIjO86sypqN4JJj0xOjTNqCJz8G5C0mhDmVwrvneGZU4QNPBe 4S/2vJddHnHmuEIOn8rSXUM7dD40gENUVrSqvH6a6WTAtl7o37vGgjMEuNgUHKBpgQg3 aYNP85MI9zOB8M9mqFux6Ehkx09z2tXSf7hh0= Message-ID: <48E7E5B1.8010101@gmail.com> Date: Sun, 05 Oct 2008 06:52:49 +0900 From: Tejun Heo User-Agent: Thunderbird 2.0.0.12 (X11/20071114) MIME-Version: 1.0 To: Alan Cox CC: "Rafael J. Wysocki" , Andrew Morton , Jeff Garzik , ACPI Devel Maling List , linux-ide@vger.kernel.org, Thomas Renninger , Robert Hancock , LKML , Frans Pop , Maciej Rutecki Subject: Re: [PATCH 1/6] Hibernation: Introduce system_entering_hibernation References: <200808290002.55026.rjw@sisk.pl> <200810032351.46869.rjw@sisk.pl> <20081004002724.47fab174@lxorguk.ukuu.org.uk> <200810041213.22249.rjw@sisk.pl> <20081004225008.2cc08201@lxorguk.ukuu.org.uk> In-Reply-To: <20081004225008.2cc08201@lxorguk.ukuu.org.uk> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alan Cox wrote: >> Hm, I'm not sure what you mean exactly, but the point is to blacklist the >> on-board controllers only and a devfn of the controller is needed for that, >> or a part of it (like the slot number I'm using). Could that be done above >> the driver level? > > It can be done in one place via the libata core code I think rather than > in each driver. Might need to be a helper function but you'd at least > remove all the duplication. I think it's better to keep the list in each LLD but having a helper in libata-core would be nice. Thanks. -- tejun