ata_wait_register — wait until register value changes
|struct ata_port * ap,|
|void __iomem * reg,|
|unsigned long interval,|
|unsigned long timeout|
ATA port to wait register for, can be NULL
Mask to apply to read register value
polling interval in milliseconds
timeout in milliseconds
Waiting for some bits of register to change is a common
operation for ATA controllers. This function reads 32bit LE
reg and tests for the following condition.
reg & mask) != val
If the condition is met, it returns; otherwise, the process is
interval_msec until timeout.