Linus Torvalds wrote:
int ata_device_resume(struct ata_port *ap, struct ata_device *dev) { + /* + * Wait for BUSY to go away for up to 2 seconds, + * and then try to wait for idle (up to 1 msec) + */ + ata_busy_wait(ap, ATA_BUSY, 200000); + ata_wait_idle(ap); + if (ap->flags & ATA_FLAG_SUSPENDED) { ap->flags &= ~ATA_FLAG_SUSPENDED; ata_set_mode(ap);
Oh, and as Jens pointed out, the busy-wait should be inside the ATA_FLAG_SUSPENDED test... (though one wonders when resume would ever be called, except when that flag is set)
Jeff - : send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html