aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hicks <mort@bork.org>2006-07-05 15:06:13 -0400
committerJeff Garzik <jeff@garzik.org>2006-08-10 08:29:12 -0400
commita34b6fc04d58ad72fe0cc74cd448f4551bd2ebaf (patch)
tree7cfcc47161c3231a204e40f1421807f579a57938
parent51704c609fcf256dacfcfae3622eb6ef53ac5b48 (diff)
[PATCH] libata: PHY reset requires writing 0x4 to SControl
Hi, Reading the Intel VSC and AHCI it seems like writing 0x302 is incorrect. The only valid values are 4, 1 and 0. Writing 4 disables the PHY. Signed-off-by: Martin Hicks <mort@bork.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/scsi/libata-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 16fc2dd8f2f..73dd6c8deed 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -2746,7 +2746,7 @@ int sata_std_hardreset(struct ata_port *ap, unsigned int *class)
if ((rc = sata_scr_read(ap, SCR_CONTROL, &scontrol)))
return rc;
- scontrol = (scontrol & 0x0f0) | 0x302;
+ scontrol = (scontrol & 0x0f0) | 0x304;
if ((rc = sata_scr_write(ap, SCR_CONTROL, scontrol)))
return rc;