Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29248
b: refs/heads/master
c: db70fef
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Apr 11, 2006
1 parent cbd4c3d commit 32aba6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 35bb94b116e1fd4959ef0d3187458b5820eac8c4
refs/heads/master: db70fef0750e5f8dbb64f9fadb333d2c7caf26a1
10 changes: 5 additions & 5 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2369,12 +2369,16 @@ 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;
sata_phy_resume(ap);

/* init sata_spd_limit to the current value */
spd = (scr_read(ap, SCR_CONTROL) & 0xf0) >> 4;
if (spd)
ap->sata_spd_limit &= (1 << spd) - 1;

/* wait for device */
if (sata_dev_present(ap))
ata_busy_sleep(ap, ATA_TMOUT_BOOT_QUICK, ATA_TMOUT_BOOT);
}
Expand Down Expand Up @@ -2531,10 +2535,6 @@ void ata_std_postreset(struct ata_port *ap, unsigned int *classes)
{
DPRINTK("ENTER\n");

/* set cable type if it isn't already set */
if (ap->cbl == ATA_CBL_NONE && ap->flags & ATA_FLAG_SATA)
ap->cbl = ATA_CBL_SATA;

/* print link status */
if (ap->cbl == ATA_CBL_SATA)
sata_print_link_status(ap);
Expand Down Expand Up @@ -2584,7 +2584,7 @@ int ata_std_probe_reset(struct ata_port *ap, unsigned int *classes)
ata_reset_fn_t hardreset;

hardreset = NULL;
if (ap->flags & ATA_FLAG_SATA && ap->ops->scr_read)
if (ap->cbl == ATA_CBL_SATA && ap->ops->scr_read)
hardreset = sata_std_hardreset;

return ata_drive_probe_reset(ap, ata_std_probeinit,
Expand Down

0 comments on commit 32aba6d

Please sign in to comment.