Files
linux-legacy/include/linux
Tejun Heo c22daff410 [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 <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2006-04-11 13:19:11 -04:00
..
…
…
…
…
…
2006-03-31 12:18:48 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-28 09:16:05 -08:00
…
…
…
…
…
…
…
2006-03-27 08:44:59 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-27 08:44:59 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-31 12:18:54 -08:00
…
…
…
…
…
…
…
…
…
…
2006-04-02 00:08:05 -05:00
2006-04-11 06:18:35 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-27 08:44:51 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-04-02 00:10:28 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-27 08:44:52 -08:00
…
…
…
…
…
…
…
…
…
2006-03-27 08:44:48 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-04-11 06:18:39 -07:00
…
…
…
…
…
2006-03-29 13:24:50 +11:00
…
…
…
2006-03-27 08:44:48 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-27 08:44:51 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-04-02 00:08:05 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-28 09:16:05 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-31 12:18:56 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-28 09:16:05 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…