Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964853AbVIHP4g (ORCPT ); Thu, 8 Sep 2005 11:56:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964858AbVIHP4g (ORCPT ); Thu, 8 Sep 2005 11:56:36 -0400 Received: from fed1rmmtao12.cox.net ([68.230.241.27]:14031 "EHLO fed1rmmtao12.cox.net") by vger.kernel.org with ESMTP id S964853AbVIHP4f (ORCPT ); Thu, 8 Sep 2005 11:56:35 -0400 Date: Thu, 8 Sep 2005 08:56:34 -0700 From: Tom Rini To: Bartlomiej Zolnierkiewicz , Hiroshi DOYU Cc: Andrew Morton , Kernel Mailing List , IDE Mailing List Subject: Re: [PATCH 2.6.13] ide: ide-dma.c should always check hwif->cds before hwif->cds->foo Message-ID: <20050908155634.GO3966@smtp.west.cox.net> References: <20050908151529.GL3966@smtp.west.cox.net> <58cb370e05090808472f5e12e4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58cb370e05090808472f5e12e4@mail.gmail.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1085 Lines: 26 On Thu, Sep 08, 2005 at 05:47:38PM +0200, Bartlomiej Zolnierkiewicz wrote: > On 9/8/05, Tom Rini wrote: > > In some cases (such as the mips Toshiba TX4939 w/ onboard IDE, not PCI > > IDE), hwif->cds can be NULL, so test that prior to testing > > hwif->cds->foo > > Both ide_iomio_dma() and ide_mapped_mmio_dma() are only called from > ide_dma_iobase(). ide_setup_dma() is the only user of ide_dma_iobase() > and it is supposed to be used only by IDE PCI drivers. > > What is the reason for this change? I'll try and explain for Hiroshi DOYU, but the IDE driver for the tx4939 (overall port still need a little bit more review before being sent to linux-mips, so the ide driver hasn't been submitted yet either) calls ide_setup_dma(), and has hwif->cds == NULL. -- Tom Rini http://gate.crashing.org/~trini/ - 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/