diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/libata-core.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 14f299278f1b..8a79b976f08a 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -5912,6 +5912,7 @@ static int ata_host_request_pm(struct ata_host *host, pm_message_t mesg, | |||
5912 | 5912 | ||
5913 | for (i = 0; i < host->n_ports; i++) { | 5913 | for (i = 0; i < host->n_ports; i++) { |
5914 | struct ata_port *ap = host->ports[i]; | 5914 | struct ata_port *ap = host->ports[i]; |
5915 | struct ata_link *link; | ||
5915 | 5916 | ||
5916 | /* Previous resume operation might still be in | 5917 | /* Previous resume operation might still be in |
5917 | * progress. Wait for PM_PENDING to clear. | 5918 | * progress. Wait for PM_PENDING to clear. |
@@ -5931,8 +5932,10 @@ static int ata_host_request_pm(struct ata_host *host, pm_message_t mesg, | |||
5931 | } | 5932 | } |
5932 | 5933 | ||
5933 | ap->pflags |= ATA_PFLAG_PM_PENDING; | 5934 | ap->pflags |= ATA_PFLAG_PM_PENDING; |
5934 | ap->link.eh_info.action |= action; | 5935 | __ata_port_for_each_link(link, ap) { |
5935 | ap->link.eh_info.flags |= ehi_flags; | 5936 | link->eh_info.action |= action; |
5937 | link->eh_info.flags |= ehi_flags; | ||
5938 | } | ||
5936 | 5939 | ||
5937 | ata_port_schedule_eh(ap); | 5940 | ata_port_schedule_eh(ap); |
5938 | 5941 | ||