aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/libata-core.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 061b0b6544cc..3acf56200d87 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -2132,9 +2132,11 @@ err_out:
2132static int sata_phy_resume(struct ata_port *ap) 2132static int sata_phy_resume(struct ata_port *ap)
2133{ 2133{
2134 unsigned long timeout = jiffies + (HZ * 5); 2134 unsigned long timeout = jiffies + (HZ * 5);
2135 u32 sstatus; 2135 u32 scontrol, sstatus;
2136 2136
2137 scr_write_flush(ap, SCR_CONTROL, 0x300); 2137 scontrol = scr_read(ap, SCR_CONTROL);
2138 scontrol = (scontrol & 0x0f0) | 0x300;
2139 scr_write_flush(ap, SCR_CONTROL, scontrol);
2138 2140
2139 /* Wait for phy to become ready, if necessary. */ 2141 /* Wait for phy to become ready, if necessary. */
2140 do { 2142 do {
@@ -2247,10 +2249,14 @@ int ata_std_softreset(struct ata_port *ap, int verbose, unsigned int *classes)
2247 */ 2249 */
2248int sata_std_hardreset(struct ata_port *ap, int verbose, unsigned int *class) 2250int sata_std_hardreset(struct ata_port *ap, int verbose, unsigned int *class)
2249{ 2251{
2252 u32 scontrol;
2253
2250 DPRINTK("ENTER\n"); 2254 DPRINTK("ENTER\n");
2251 2255
2252 /* Issue phy wake/reset */ 2256 /* Issue phy wake/reset */
2253 scr_write_flush(ap, SCR_CONTROL, 0x301); 2257 scontrol = scr_read(ap, SCR_CONTROL);
2258 scontrol = (scontrol & 0x0f0) | 0x301;
2259 scr_write_flush(ap, SCR_CONTROL, scontrol);
2254 2260
2255 /* 2261 /*
2256 * Couldn't find anything in SATA I/II specs, but AHCI-1.1 2262 * Couldn't find anything in SATA I/II specs, but AHCI-1.1