aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ahci.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-01-23 02:31:53 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-01-26 23:07:08 -0500
commite0bfd149973d22a4330dd6665b54d1dcca07174a (patch)
treeb3c2fc9e3bc9a1ed4a3d677710c426e5a300105e /drivers/scsi/ahci.c
parent9506437921504df18c6601f7d09bb23d72d2f6ba (diff)
[PATCH] ahci: stop engine during hard reset
AHCI spec mandates engine to be stopped during hard resets. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/scsi/ahci.c')
-rw-r--r--drivers/scsi/ahci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c
index 5a6b23009897..2abc0aca5a8d 100644
--- a/drivers/scsi/ahci.c
+++ b/drivers/scsi/ahci.c
@@ -504,7 +504,9 @@ static void ahci_phy_reset(struct ata_port *ap)
504 struct ata_device *dev = &ap->device[0]; 504 struct ata_device *dev = &ap->device[0];
505 u32 new_tmp, tmp; 505 u32 new_tmp, tmp;
506 506
507 ahci_stop_engine(ap);
507 __sata_phy_reset(ap); 508 __sata_phy_reset(ap);
509 ahci_start_engine(ap);
508 510
509 if (ap->flags & ATA_FLAG_PORT_DISABLED) 511 if (ap->flags & ATA_FLAG_PORT_DISABLED)
510 return; 512 return;