[PATCH] ahci: stop engine during hard reset
authorTejun Heo <htejun@gmail.com>
Mon, 23 Jan 2006 07:31:53 +0000 (16:31 +0900)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 27 Jan 2006 04:07:08 +0000 (23:07 -0500)
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>
drivers/scsi/ahci.c

index 5a6b23009897083cc1c5b690666f051d34f0db47..2abc0aca5a8d90a191b84ec5c7d924c6e7acfc0b 100644 (file)
@@ -504,7 +504,9 @@ static void ahci_phy_reset(struct ata_port *ap)
        struct ata_device *dev = &ap->device[0];
        u32 new_tmp, tmp;
 
+       ahci_stop_engine(ap);
        __sata_phy_reset(ap);
+       ahci_start_engine(ap);
 
        if (ap->flags & ATA_FLAG_PORT_DISABLED)
                return;