From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from the-village.bc.nu (unknown [81.2.110.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 331EDDDF14 for ; Wed, 11 Apr 2007 02:26:36 +1000 (EST) Date: Tue, 10 Apr 2007 17:29:42 +0100 From: Alan Cox To: Jeff Garzik Subject: Re: IDE driver in polling mode Message-ID: <20070410172942.7f63d49c@the-village.bc.nu> In-Reply-To: <461BB8C7.9050900@garzik.org> References: <1ea6be8e0704100635ydbf1538i782e796c99891e5d@mail.gmail.com> <461B9D04.2000109@ru.mvista.com> <20070410171125.3aeed29d@the-village.bc.nu> <461BB8C7.9050900@garzik.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linux-ide@vger.kernel.org, linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > The only real restriction in libata is in ata_device_add(), which > unconditionally registers an irq handler. Make a few changes there, add > a few flags, and the existing polling code will kick in. Obvious thing to do would be to do this if the IRQ number passed in is 0 rather than aborting as we do now. In theory ISAPnP devices may be IRQless too. Alan