Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29291
b: refs/heads/master
c: 838df62
h: refs/heads/master
i:
  29289: cd09356
  29287: 939d093
v: v3
  • Loading branch information
Tejun Heo committed May 15, 2006
1 parent 203110e commit 87ee1ae
Show file tree
Hide file tree
Showing 2 changed files with 7 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: ce5f7f3d0cab82d6c16fcb64def8bfc0a3a85dd6
refs/heads/master: 838df6284c54447efae956fb9c243d8ba4ab0f47
9 changes: 6 additions & 3 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2370,8 +2370,7 @@ void ata_std_probeinit(struct ata_port *ap)
if ((ap->flags & ATA_FLAG_SATA) && ap->ops->scr_read) {
u32 spd;

/* set cable type and resume link */
ap->cbl = ATA_CBL_SATA;
/* resume link */
sata_phy_resume(ap);

/* init sata_spd_limit to the current value */
Expand Down Expand Up @@ -4586,14 +4585,18 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host,
ap->udma_mask = ent->udma_mask;
ap->flags |= ent->host_flags;
ap->ops = ent->port_ops;
ap->cbl = ATA_CBL_NONE;
ap->sata_spd_limit = UINT_MAX;
ap->active_tag = ATA_TAG_POISON;
ap->last_ctl = 0xFF;

INIT_WORK(&ap->port_task, NULL, NULL);
INIT_LIST_HEAD(&ap->eh_done_q);

/* set cable type */
ap->cbl = ATA_CBL_NONE;
if (ap->flags & ATA_FLAG_SATA)
ap->cbl = ATA_CBL_SATA;

for (i = 0; i < ATA_MAX_DEVICES; i++) {
struct ata_device *dev = &ap->device[i];
dev->devno = i;
Expand Down

0 comments on commit 87ee1ae

Please sign in to comment.