From: Martin Hicks Date: Wed, 5 Jul 2006 19:06:13 +0000 (-0400) Subject: [PATCH] libata: PHY reset requires writing 0x4 to SControl X-Git-Tag: MMI-PSA29.97-13-9~47846^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a34b6fc04d58ad72fe0cc74cd448f4551bd2ebaf;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 16fc2dd8f2f7..73dd6c8deede 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;