Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32884
b: refs/heads/master
c: 7c8c2cf
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jul 19, 2006
1 parent 13a8456 commit d1d9ef7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 4528e4da79675b4995e085046b8ffbe0415c3261
refs/heads/master: 7c8c2cff81b2b7f6dd3f9fd7b77033c1be5d7920
7 changes: 4 additions & 3 deletions trunk/drivers/scsi/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1843,15 +1843,16 @@ static int ata_eh_skip_recovery(struct ata_port *ap)
for (i = 0; i < ata_port_max_devices(ap); i++) {
struct ata_device *dev = &ap->device[i];

if (ata_dev_absent(dev) || ata_dev_ready(dev))
if (!(dev->flags & ATA_DFLAG_SUSPENDED))
break;
}

if (i == ata_port_max_devices(ap))
return 1;

/* always thaw frozen port and recover failed devices */
if (ap->pflags & ATA_PFLAG_FROZEN || ata_port_nr_enabled(ap))
/* thaw frozen port, resume link and recover failed devices */
if ((ap->pflags & ATA_PFLAG_FROZEN) ||
(ehc->i.flags & ATA_EHI_RESUME_LINK) || ata_port_nr_enabled(ap))
return 0;

/* skip if class codes for all vacant slots are ATA_DEV_NONE */
Expand Down

0 comments on commit d1d9ef7

Please sign in to comment.