]> err.no Git - linux-2.6/blobdiff - drivers/scsi/libata-core.c
Merge branch 'audit.b21' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit...
[linux-2.6] / drivers / scsi / libata-core.c
index fa476e7e0a480c52f2808b721e3c465eb1ba5fc3..de9ba7890b5adceeea4c909062de63e9afeb6f71 100644 (file)
@@ -4297,6 +4297,8 @@ static int ata_start_drive(struct ata_port *ap, struct ata_device *dev)
 int ata_device_resume(struct ata_port *ap, struct ata_device *dev)
 {
        if (ap->flags & ATA_FLAG_SUSPENDED) {
+               ata_busy_sleep(ap, ATA_TMOUT_BOOT_QUICK, ATA_TMOUT_BOOT);
+               ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 200000);
                ap->flags &= ~ATA_FLAG_SUSPENDED;
                ata_set_mode(ap);
        }