Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933956AbWK1Bx4 (ORCPT ); Mon, 27 Nov 2006 20:53:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933934AbWK1Bx4 (ORCPT ); Mon, 27 Nov 2006 20:53:56 -0500 Received: from hqemgate01.nvidia.com ([216.228.112.170]:64792 "EHLO HQEMGATE01.nvidia.com") by vger.kernel.org with ESMTP id S933568AbWK1Bxz convert rfc822-to-8bit (ORCPT ); Mon, 27 Nov 2006 20:53:55 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Subject: RE: [PATCH -mm] sata_nv: fix ATAPI in ADMA mode Date: Mon, 27 Nov 2006 17:51:31 -0800 Message-ID: In-Reply-To: <20061127151541.16a93d49.akpm@osdl.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH -mm] sata_nv: fix ATAPI in ADMA mode Thread-Index: AccSekg0V+bOCLZ9Rc2qGPgwhewVaAAFS3fA From: "Allen Martin" To: "Andrew Morton" , "Robert Hancock" Cc: "linux-kernel" , , "Jeff Garzik" , X-OriginalArrivalTime: 28 Nov 2006 01:51:32.0898 (UTC) FILETIME=[BAEBB020:01C7128F] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1203 Lines: 27 > > static irqreturn_t nv_adma_interrupt(int irq, void *dev_instance) > > { > > struct ata_host *host = dev_instance; > > int i, handled = 0; > > + u32 notifier_clears[2]; > > > > spin_lock(&host->lock); > > > > for (i = 0; i < host->n_ports; i++) { > > struct ata_port *ap = host->ports[i]; > > + notifier_clears[i] = 0; > > Promise us that n_ports will never exceed 2? I promise it will never exceed 2, at least as far as NVIDIA ADMA hardware is concerned. ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ----------------------------------------------------------------------------------- - 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/