diff options
author | Tejun Heo <htejun@gmail.com> | 2006-01-23 02:31:53 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-26 23:07:08 -0500 |
commit | e0bfd149973d22a4330dd6665b54d1dcca07174a (patch) | |
tree | b3c2fc9e3bc9a1ed4a3d677710c426e5a300105e /drivers/scsi/ahci.c | |
parent | 9506437921504df18c6601f7d09bb23d72d2f6ba (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index 5a6b2300989..2abc0aca5a8 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; |