ata_wait_after_reset — wait before checking status after reset
void ata_wait_after_reset ( | struct ata_port * | ap, |
unsigned long | deadline) ; |
ap
port containing status register to be polled
deadline
deadline jiffies for the operation
After reset, we need to pause a while before reading status. Also, certain combination of controller and device report 0xff for some duration (e.g. until SATA PHY is up and running) which is interpreted as empty port in ATA world. This function also waits for such devices to get out of 0xff status.