Skip to contentSkip to conversation

Update users of ACPI-SATA/PATA functions

PATCH In review zhao, forrest 1 participant 1 message Jun 23, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 Update users of ACPI-SATA/PATA functions

Update users of ACPI-SATA functions.

---

 drivers/scsi/libata-core.c |    9 +++++++++
 drivers/scsi/libata-eh.c   |    5 ++++-
 2 files changed, 13 insertions(+), 1 deletions(-)

0ac97b2689bb2a55a38b6161d5a716c5f7e387ed

drivers/scsi/libata-core.c +9 -0
index a11b674..6f705a2 100644
@@ -1446,6 +1446,9 @@ int ata_dev_configure(struct ata_device 
 	if (ap->ops->dev_config)
 		ap->ops->dev_config(ap, dev);
 
+	rc = ata_acpi_push_id(ap, dev->devno);
+	if (rc) goto err_out_nosup;
+
 	DPRINTK("EXIT, drv_stat = 0x%x\n", ata_chk_status(ap));
 	return 0;
 
@@ -1533,6 +1536,9 @@ static int ata_bus_probe(struct ata_port
 		goto fail;
 	}
 
+	/* retrieve and execute the ATA task file of _GTF */
+	ata_acpi_exec_tfs(ap);
+
 	for (i = 0; i < ATA_MAX_DEVICES; i++)
 		if (ata_dev_enabled(&ap->device[i]))
 			return 0;
@@ -5005,6 +5011,9 @@ int ata_device_resume(struct ata_device 
 	if (dev->class == ATA_DEV_ATA)
 		ata_start_drive(dev);
 
+	/* retrieve and execute the ATA task file of _GTF */
+	ata_acpi_exec_tfs(ap);
+
 	return 0;
 }
 
drivers/scsi/libata-eh.c +4 -1
index 531a4e1..aacf37e 100644
@@ -1711,13 +1711,16 @@ static int ata_eh_recover(struct ata_por
 	if (rc)
 		goto dev_fail;
 
-	/* configure transfer mode if the port has been reset */
+	/* configure transfer mode and execute task file of _GTF
+	 * if the port has been reset.
+	 */
 	if (ehc->i.flags & ATA_EHI_DID_RESET) {
 		rc = ata_set_mode(ap, &dev);
 		if (rc) {
 			down_xfermask = 1;
 			goto dev_fail;
 		}
+		ata_acpi_exec_tfs(ap);
 	}
 
 	goto out;
Signature · 1 line
1.2.6