From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH] libata: Add MMIO support to pata_sil680 Date: Thu, 24 May 2007 20:51:26 -0400 Message-ID: <4656330E.2000604@garzik.org> References: <20070515061239.611A2DDEE9@ozlabs.org> <1179209697.32247.153.camel@localhost.localdomain> <20070523144217.5abd9fdf@the-village.bc.nu> <1179960518.32247.948.camel@localhost.localdomain> <20070524003123.77b9c81c@the-village.bc.nu> <1179963820.32247.996.camel@localhost.localdomain> <20070524001302.GA18571@devserv.devel.redhat.com> <1179978137.32247.1035.camel@localhost.localdomain> <20070524105407.64514929@the-village.bc.nu> <46556E5D.3070203@pobox.com> <20070524120915.40b594a8@the-village.bc.nu> <46562E03.3020503@garzik.org> <20070525014027.3feabe50@the-village.bc.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from srv5.dvmed.net ([207.36.208.214]:49721 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751053AbXEYAva (ORCPT ); Thu, 24 May 2007 20:51:30 -0400 In-Reply-To: <20070525014027.3feabe50@the-village.bc.nu> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Alan Cox Cc: Benjamin Herrenschmidt , Linux IDE Alan Cox wrote: >> #define DELAY400NS { pio_inbyte( CB_ASTAT ); pio_inbyte( CB_ASTAT ); \ >> pio_inbyte( CB_ASTAT ); pio_inbyte( CB_ASTAT ); } >> >> > > Totally unrelated. Hal is using the cycle time of the four I/O reads to > do the 400nS delay. Its a neat way to do the delay on boxes without > modern CPUs and nice timing features and perhaps one we should use on > those boxes but its not relevant to the question of how you post an MMIO > command write. It illustrates (as well as our experience to date) that AltStatus use for the delay is just fine. Jeff