浏览代码

[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>
Tejun Heo 19 年之前
父节点
当前提交
e0bfd14997
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/scsi/ahci.c

+ 2 - 0
drivers/scsi/ahci.c

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