Skip to content

Commit

Permalink
[PATCH] ahci: stop engine during hard reset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jan 27, 2006
1 parent 9506437 commit e0bfd14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e0bfd14

Please sign in to comment.