Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23485
b: refs/heads/master
c: 1f7dd3e
h: refs/heads/master
i:
  23483: 1a268c3
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Mar 24, 2006
1 parent a157abf commit b7423f5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a529139554f12cb265715117a2153c936286294
refs/heads/master: 1f7dd3e9d62b25c7b79f913f37c2242a61295de4
16 changes: 16 additions & 0 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,22 @@ ata_exec_internal(struct ata_port *ap, struct ata_device *dev,

ata_qc_free(qc);

/* XXX - Some LLDDs (sata_mv) disable port on command failure.
* Until those drivers are fixed, we detect the condition
* here, fail the command with AC_ERR_SYSTEM and reenable the
* port.
*
* Note that this doesn't change any behavior as internal
* command failure results in disabling the device in the
* higher layer for LLDDs without new reset/EH callbacks.
*
* Kill the following code as soon as those drivers are fixed.
*/
if (ap->flags & ATA_FLAG_PORT_DISABLED) {
err_mask |= AC_ERR_SYSTEM;
ata_port_probe(ap);
}

return err_mask;
}

Expand Down

0 comments on commit b7423f5

Please sign in to comment.