Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29220
b: refs/heads/master
c: edbabd8
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Apr 2, 2006
1 parent a4cb27b commit 28d0ecf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90dac02c08dabd471927f151b8393eb51e3e020e
refs/heads/master: edbabd8679a39faef67def4438c9cbccb5c05c5d
15 changes: 14 additions & 1 deletion trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2582,6 +2582,9 @@ int ata_drive_probe_reset(struct ata_port *ap, ata_probeinit_fn_t probeinit,
rc = ata_do_reset(ap, softreset, postreset, 0, classes);
if (rc == 0 && classes[0] != ATA_DEV_UNKNOWN)
goto done;
printk(KERN_INFO "ata%u: softreset failed, will try "
"hardreset in 5 secs\n", ap->id);
ssleep(5);
}

if (!hardreset)
Expand All @@ -2597,10 +2600,20 @@ int ata_drive_probe_reset(struct ata_port *ap, ata_probeinit_fn_t probeinit,

if (ata_down_sata_spd_limit(ap))
goto done;

printk(KERN_INFO "ata%u: hardreset failed, will retry "
"in 5 secs\n", ap->id);
ssleep(5);
}

if (softreset)
if (softreset) {
printk(KERN_INFO "ata%u: hardreset succeeded without "
"classification, will retry softreset in 5 secs\n",
ap->id);
ssleep(5);

rc = ata_do_reset(ap, softreset, postreset, 0, classes);
}

done:
if (rc == 0 && classes[0] == ATA_DEV_UNKNOWN)
Expand Down

0 comments on commit 28d0ecf

Please sign in to comment.