Skip to content

Commit e0bfd14

Browse files
htejunjgarzik
authored andcommitted
[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>
1 parent 9506437 commit e0bfd14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/scsi/ahci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,9 @@ static void ahci_phy_reset(struct ata_port *ap)
504504
struct ata_device *dev = &ap->device[0];
505505
u32 new_tmp, tmp;
506506

507+
ahci_stop_engine(ap);
507508
__sata_phy_reset(ap);
509+
ahci_start_engine(ap);
508510

509511
if (ap->flags & ATA_FLAG_PORT_DISABLED)
510512
return;

0 commit comments

Comments
 (0)