Wait for link to become ready after reset
int ata_wait_after_reset(struct ata_link * link, unsigned long deadline, int (*check_ready) (struct ata_link *link));
link
link to be waited on
deadline
deadline jiffies for the operation
check_ready
callback to check link readiness
Wait for link to become ready after reset.
EH context.
0 if linke is ready before deadline; otherwise, -errno.
Jeff Garzik
Author.