From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: [PATCHSET 2/9] implement and use ata_wait_register (repost) Date: Tue, 11 Apr 2006 22:22:29 +0900 Message-ID: <11447617493149-git-send-email-htejun@gmail.com> Reply-To: Tejun Heo Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from wproxy.gmail.com ([64.233.184.239]:22142 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S1750820AbWDKNWb (ORCPT ); Tue, 11 Apr 2006 09:22:31 -0400 Received: by wproxy.gmail.com with SMTP id i11so921431wra for ; Tue, 11 Apr 2006 06:22:31 -0700 (PDT) In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: jgarzik@pobox.com, alan@lxorguk.ukuu.org.uk, axboe@suse.de, albertcc@tw.ibm.com, lkosewsk@gmail.com, linux-ide@vger.kernel.org, htejun@gmail.com Hello, all. This patchset is repost of implement-and-use-ata_wait_register patchset. This patchset is identical to the previous post[1]. This repost is to manage confusion level. This patchset implements ata_wait_register() and uses it in ahci and sata_sil24. The function is generalized form of ahci_poll_register() with the following differences. * Uses ioread32. * The first read is done before calculating timeout such that unflushed io write doesn't affect timeout. (no flush required before calling this function.) * Test conditions is negated. As it waits for something to change, negated test is more natural/powerful and allows this function to be used for wider purpos. * Returns the last read value of @reg. This patchset contains five patches. #01-02 fix & prep sata_sil24 for following changes #03-05 implement and use ata_wait_register() This patchset is against. upstream (c2a6585296009379e0f4eff39cdcb108b457ebf2) + [1] misc-reset-updates patchset (repost) -- tejun [1] http://article.gmane.org/gmane.linux.ide/9495