Skip to contentSkip to conversation

ahci: stop engine during hard reset

PATCH Applied Tejun Heo 2 participants 2 messages Jan 23, 2006 – Jan 27, 2006

Subsystems (2)
lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 ahci: stop engine during hard reset

AHCI spec mandates engine to be stopped during hard resets.

---

Jeff, saner version of stopping engine during AHCI hard reset.

drivers/scsi/ahci.c +2 -0
index 604c4d1..b378cde 100644
@@ -504,7 +504,9 @@ static void ahci_phy_reset(struct ata_po
 	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;