diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-19 18:01:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-19 18:01:27 -0700 |
commit | 1cca0ebbb74298958dae1d1d3e7e9287c98a720c (patch) | |
tree | b41fa520bf848584a91e4e0d9fd3aa22d99c0f86 /drivers/scsi | |
parent | 427abfa28afedffadfca9dd8b067eb6d36bac53f (diff) | |
download | linux-3.10-1cca0ebbb74298958dae1d1d3e7e9287c98a720c.tar.gz linux-3.10-1cca0ebbb74298958dae1d1d3e7e9287c98a720c.tar.bz2 linux-3.10-1cca0ebbb74298958dae1d1d3e7e9287c98a720c.zip |
Improve SATA core suspend/resume
Doing a full ata_busy_sleep() seems to get suspend and resume working
fine on the Apple Mac Mini, at least.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/libata-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index b046ffa2210..de9ba7890b5 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -4297,6 +4297,7 @@ 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); |