diff options
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 21a81cd148e4..1d7faab64810 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -2747,6 +2747,7 @@ static void ata_eh_handle_port_suspend(struct ata_port *ap) | |||
2747 | if (ap->ops->port_suspend) | 2747 | if (ap->ops->port_suspend) |
2748 | rc = ap->ops->port_suspend(ap, ap->pm_mesg); | 2748 | rc = ap->ops->port_suspend(ap, ap->pm_mesg); |
2749 | 2749 | ||
2750 | ata_acpi_set_state(ap, PMSG_SUSPEND); | ||
2750 | out: | 2751 | out: |
2751 | /* report result */ | 2752 | /* report result */ |
2752 | spin_lock_irqsave(ap->lock, flags); | 2753 | spin_lock_irqsave(ap->lock, flags); |
@@ -2792,6 +2793,8 @@ static void ata_eh_handle_port_resume(struct ata_port *ap) | |||
2792 | 2793 | ||
2793 | WARN_ON(!(ap->pflags & ATA_PFLAG_SUSPENDED)); | 2794 | WARN_ON(!(ap->pflags & ATA_PFLAG_SUSPENDED)); |
2794 | 2795 | ||
2796 | ata_acpi_set_state(ap, PMSG_ON); | ||
2797 | |||
2795 | if (ap->ops->port_resume) | 2798 | if (ap->ops->port_resume) |
2796 | rc = ap->ops->port_resume(ap); | 2799 | rc = ap->ops->port_resume(ap); |
2797 | 2800 | ||