Commit e0bfd149 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

[PATCH] ahci: stop engine during hard reset

AHCI spec mandates engine to be stopped during hard resets.
Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment