From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423362AbXDYR62 (ORCPT ); Wed, 25 Apr 2007 13:58:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423356AbXDYR62 (ORCPT ); Wed, 25 Apr 2007 13:58:28 -0400 Received: from mga02.intel.com ([134.134.136.20]:28674 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423354AbXDYR6Z (ORCPT ); Wed, 25 Apr 2007 13:58:25 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.14,451,1170662400"; d="scan'208";a="233896144" Date: Wed, 25 Apr 2007 10:55:53 -0700 From: Kristen Carlson Accardi To: Olivier Galibert Cc: Alan Cox , jeff@garzik.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, htejun@gmail.com Subject: Re: [patch 1/7] libata: check for AN support Message-Id: <20070425105553.eee16f00.kristen.c.accardi@intel.com> In-Reply-To: <20070425004946.GA63747@dspnet.fr.eu.org> References: <20070424074856.005152262@intel.com> <20070423165943.0cc67bc5.kristen.c.accardi@intel.com> <20070424090713.65657495@the-village.bc.nu> <20070424102304.GA58841@dspnet.fr.eu.org> <20070424084904.61932994.kristen.c.accardi@intel.com> <20070424180552.GA17319@dspnet.fr.eu.org> <20070424135327.8fe0b0ba.kristen.c.accardi@intel.com> <20070425004946.GA63747@dspnet.fr.eu.org> X-Mailer: Sylpheed version 2.2.10 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Apr 2007 02:49:46 +0200 Olivier Galibert wrote: > On Tue, Apr 24, 2007 at 01:53:27PM -0700, Kristen Carlson Accardi wrote: > > Check to see if an ATAPI device supports Asynchronous Notification. > > If so, enable it. > > > > changes from last version: > > * fix typo in ata_id_has_AN and make word 76 test more clear > > * If we fail to set the AN feature, just print a warning and continue > > > > Signed-off-by: Kristen Carlson Accardi > > > > @@ -299,6 +305,8 @@ struct ata_taskfile { > > #define ata_id_queue_depth(id) (((id)[75] & 0x1f) + 1) > > #define ata_id_removeable(id) ((id)[0] & (1 << 7)) > > #define ata_id_has_dword_io(id) ((id)[50] & (1 << 0)) > > +#define ata_id_has_AN(id) \ > > + (((id[76] != 0x0000) && (id[76] != 0xffff)) && ((id)[78] & (1 << 5))) > > (id)[76] I guess ? Sorry for being a pain :/ > > OG. > Ok - I'll fix that. Thank you for being a pain :), I really appreciate the time you are taking to review my patches.