diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/libata-eh.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 79711b64054b..9159abe5211c 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -999,7 +999,9 @@ static void __ata_port_freeze(struct ata_port *ap) | |||
999 | * ata_port_freeze - abort & freeze port | 999 | * ata_port_freeze - abort & freeze port |
1000 | * @ap: ATA port to freeze | 1000 | * @ap: ATA port to freeze |
1001 | * | 1001 | * |
1002 | * Abort and freeze @ap. | 1002 | * Abort and freeze @ap. The freeze operation must be called |
1003 | * first, because some hardware requires special operations | ||
1004 | * before the taskfile registers are accessible. | ||
1003 | * | 1005 | * |
1004 | * LOCKING: | 1006 | * LOCKING: |
1005 | * spin_lock_irqsave(host lock) | 1007 | * spin_lock_irqsave(host lock) |
@@ -1013,8 +1015,8 @@ int ata_port_freeze(struct ata_port *ap) | |||
1013 | 1015 | ||
1014 | WARN_ON(!ap->ops->error_handler); | 1016 | WARN_ON(!ap->ops->error_handler); |
1015 | 1017 | ||
1016 | nr_aborted = ata_port_abort(ap); | ||
1017 | __ata_port_freeze(ap); | 1018 | __ata_port_freeze(ap); |
1019 | nr_aborted = ata_port_abort(ap); | ||
1018 | 1020 | ||
1019 | return nr_aborted; | 1021 | return nr_aborted; |
1020 | } | 1022 | } |