commit | 4a9c7b3359889399aacb94019bbdfc9f38d4cff7 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Mon Oct 27 19:59:23 2008 +0900 |
committer | Jeff Garzik <jgarzik@redhat.com> | Mon Oct 27 23:55:12 2008 -0400 |
tree | a791790f02f2a0a5b3ea66c1526ae79f1711dca8 | |
parent | c77a036beceabbfd85b366193685cb49f38292bd [diff] |
libata: fix device iteration bugs There were several places where only enabled devices should be iterated over but device enabledness wasn't checked. * IDENTIFY data 40 wire check in cable_is_40wire() * xfer_mode/ncq_enabled saving in ata_scsi_error() * DUBIOUS_XFER handling in ata_set_mode() While at it, reformat comments in cable_is_40wire(). Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>