ata_wait_ready — wait for link to become ready
|struct ata_link * link,|
|unsigned long deadline,|
struct ata_link * link
link to be waited on
unsigned long deadline
deadline jiffies for the operation
int (*)(struct ata_link *link) check_ready
callback to check link readiness
link to become ready.
check_ready should return
positive number if
link is ready, 0 if it isn't, -ENODEV if
link doesn't seem to be occupied, other errno for other error
Transient -ENODEV conditions are allowed for ATA_TMOUT_FF_WAIT.
LOCKING: EH context.