Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44628
b: refs/heads/master
c: 5c9a761
h: refs/heads/master
v: v3
  • Loading branch information
Alan authored and Jeff Garzik committed Dec 16, 2006
1 parent 4d07686 commit ebdac9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 2bfc3611bd91986ed2b979a7f536c52751c8ac8f
refs/heads/master: 5c9a76118d24f044b8d8ee721dbbf4e5c7db3dbb
9 changes: 7 additions & 2 deletions trunk/drivers/ata/pata_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,15 @@ static int via_pre_reset(struct ata_port *ap)
return -ENOENT;
}

if ((config->flags & VIA_UDMA) >= VIA_UDMA_66)
if ((config->flags & VIA_UDMA) >= VIA_UDMA_100)
ap->cbl = via_cable_detect(ap);
else
/* The UDMA66 series has no cable detect so do drive side detect */
else if ((config->flags & VIA_UDMA) < VIA_UDMA_66)
ap->cbl = ATA_CBL_PATA40;
else
ap->cbl = ATA_CBL_PATA_UNK;


return ata_std_prereset(ap);
}

Expand Down

0 comments on commit ebdac9f

Please sign in to comment.