From: Bartlomiej Zolnierkiewicz Subject: Re: overriding ioops Date: Sun, 6 Jun 2004 00:50:33 +0200 Sender: linux-ide-owner@vger.kernel.org Message-ID: <200406060050.33983.bzolnier@elka.pw.edu.pl> References: <20040605201953.GA14917@buici.com> <200406052242.19060.bzolnier@elka.pw.edu.pl> <20040605222535.GB16309@buici.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mion.elka.pw.edu.pl ([194.29.160.35]:8639 "EHLO mion.elka.pw.edu.pl") by vger.kernel.org with ESMTP id S262279AbUFEWqw (ORCPT ); Sat, 5 Jun 2004 18:46:52 -0400 In-Reply-To: <20040605222535.GB16309@buici.com> Content-Disposition: inline List-Id: linux-ide@vger.kernel.org To: Marc Singer Cc: linux-ide@vger.kernel.org On Sunday 06 of June 2004 00:25, Marc Singer wrote: > On Sat, Jun 05, 2004 at 10:42:19PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On Saturday 05 of June 2004 22:19, Marc Singer wrote: > > > I know that you me to do this differently that I did in 2.6.4. I need > > > to override the hwif->OUTB (et, all) functions. Do I implement my own > > > version of the default_hwif_ function? > > > > No, arch specific code shouldn't touch generic one. > > Your host driver should take care of this. > > > > If you need some changes in generic code please describe them > > and I'll try to fix/enhance it. > > > > [ I know about polling but this is really non trivial change as i.e. > > we have 4 versions of IDE PIO code (!) - I'm cleaning this mess now. ] > > I wonder if we're talking about the same thing. My platform does not > have DMA nor does it have an IRQ. PIO, as I understand it, refers to > programmed IO and not to polling proper. Do you intend to support > polling? I am speaking about PIO mode data transfers not PIO register access and I intend to use polling instead of IRQs for them. It requires some time as I need to clean existing mess first: - task_*() and flagged_task_*() in ide-taskfile.c - read_intr() and write_intr() in ide-disk.c - etc.