Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 49057
b: refs/heads/master
c: 08573a8
h: refs/heads/master
i:
  49055: 241e48a
v: v3
  • Loading branch information
Kristen Carlson Accardi authored and Jeff Garzik committed Feb 16, 2007
1 parent f8baa15 commit 5f77547
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 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: 7ea1fbc2a2449bc034a3d255f36f2e5486d52fe8
refs/heads/master: 08573a86c8da1379b4f341ab4781bb7c8685d5b6
21 changes: 10 additions & 11 deletions trunk/drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,16 @@ int ata_dev_configure(struct ata_device *dev)
ata_dev_printk(dev, KERN_DEBUG, "%s: ENTER, host %u, dev %u\n",
__FUNCTION__, ap->id, dev->devno);

/* set _SDD */
rc = ata_acpi_push_id(ap, dev->devno);
if (rc) {
ata_dev_printk(dev, KERN_WARNING, "failed to set _SDD(%d)\n",
rc);
}

/* retrieve and execute the ATA task file of _GTF */
ata_acpi_exec_tfs(ap);

/* print device capabilities */
if (ata_msg_probe(ap))
ata_dev_printk(dev, KERN_DEBUG,
Expand Down Expand Up @@ -1737,14 +1747,6 @@ int ata_dev_configure(struct ata_device *dev)
if (ap->ops->dev_config)
ap->ops->dev_config(ap, dev);

/* set _SDD */
rc = ata_acpi_push_id(ap, dev->devno);
if (rc) {
ata_dev_printk(dev, KERN_WARNING, "failed to set _SDD(%d)\n",
rc);
goto err_out_nosup;
}

if (ata_msg_probe(ap))
ata_dev_printk(dev, KERN_DEBUG, "%s: EXIT, drv_stat = 0x%x\n",
__FUNCTION__, ata_chk_status(ap));
Expand Down Expand Up @@ -1790,9 +1792,6 @@ int ata_bus_probe(struct ata_port *ap)
/* reset and determine device classes */
ap->ops->phy_reset(ap);

/* retrieve and execute the ATA task file of _GTF */
ata_acpi_exec_tfs(ap);

for (i = 0; i < ATA_MAX_DEVICES; i++) {
dev = &ap->device[i];

Expand Down

0 comments on commit 5f77547

Please sign in to comment.