From: Tejun Heo Date: Tue, 11 Apr 2006 13:22:29 +0000 (+0900) Subject: [PATCH] libata: implement ata_wait_register() X-Git-Tag: v2.6.18-rc1~1079^2~121 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c22daff41001e9ccead87179ac0547f85447139e;p=pandora-kernel.git [PATCH] libata: implement ata_wait_register() As waiting for some register bits to change seems to be a common operation shared by some controllers, implement helper function ata_wait_register(). This function also takes care of register write flushing. Note that the condition is inverted, the wait is over when the masked value does NOT match @val. As we're waiting for bits to change, this test is more powerful and allows the function to be used in more places. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed