提交 e0bfd149 编写于 作者: T Tejun Heo 提交者: Jeff Garzik

[PATCH] ahci: stop engine during hard reset

AHCI spec mandates engine to be stopped during hard resets.
Signed-off-by: NTejun Heo <htejun@gmail.com>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 95064379
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册