Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68084
b: refs/heads/master
c: 614fe29
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Oct 12, 2007
1 parent e98eece commit cb6753c
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 4743d0854faa5624148ac6cf3fe9692e977eefa1
refs/heads/master: 614fe29bd91f99cc1c1fbf3274fa918691044f47
11 changes: 11 additions & 0 deletions trunk/drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2183,6 +2183,17 @@ int ata_bus_probe(struct ata_port *ap)
if (ap->ops->cable_detect)
ap->cbl = ap->ops->cable_detect(ap);

/* We may have SATA bridge glue hiding here irrespective of the
reported cable types and sensed types */
ata_link_for_each_dev(dev, &ap->link) {
if (!ata_dev_enabled(dev))
continue;
/* SATA drives indicate we have a bridge. We don't know which
end of the link the bridge is which is a problem */
if (ata_id_is_sata(dev->id))
ap->cbl = ATA_CBL_SATA;
}

/* After the identify sequence we can now set up the devices. We do
this in the normal order so that the user doesn't get confused */

Expand Down

0 comments on commit cb6753c

Please sign in to comment.