From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Lord Subject: Re: IDE driver in polling mode Date: Tue, 10 Apr 2007 10:44:11 -0400 Message-ID: <461BA2BB.6040101@rtr.ca> References: <1ea6be8e0704100635ydbf1538i782e796c99891e5d@mail.gmail.com> <461B9D04.2000109@ru.mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <461B9D04.2000109@ru.mvista.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-embedded-bounces+glppe-linuxppc-embedded-2=m.gmane.org@ozlabs.org Errors-To: linuxppc-embedded-bounces+glppe-linuxppc-embedded-2=m.gmane.org@ozlabs.org To: Michael Cc: linux-ide@vger.kernel.org, linuxppc-embedded@ozlabs.org List-Id: linux-ide@vger.kernel.org > Michael wrote: > >> I'd like to know whether it is possible to use IDE driver (ide-disk) >> in polling mode, instead of using IRQ. This should be doable, with a small amount of hacking. Mostly, you just need to use add_timer() to set up a polling function that simply calls ide_intr() and then does add_timer() again for the next poll. For your purposes, it could be as simple as five lines of C. Cheers