aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-pmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-pmp.c')
-rw-r--r--drivers/ata/libata-pmp.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
index df1d3252b9e6..39e036c8a2bc 100644
--- a/drivers/ata/libata-pmp.c
+++ b/drivers/ata/libata-pmp.c
@@ -435,7 +435,7 @@ static int sata_pmp_init_links(struct ata_port *ap, int nr_ports)
435 struct ata_eh_context *ehc = &link->eh_context; 435 struct ata_eh_context *ehc = &link->eh_context;
436 436
437 link->flags = 0; 437 link->flags = 0;
438 ehc->i.probe_mask |= 1; 438 ehc->i.probe_mask |= ATA_ALL_DEVICES;
439 ehc->i.action |= ATA_EH_RESET; 439 ehc->i.action |= ATA_EH_RESET;
440 } 440 }
441 441
@@ -831,8 +831,12 @@ static int sata_pmp_eh_recover_pmp(struct ata_port *ap,
831 ata_eh_thaw_port(ap); 831 ata_eh_thaw_port(ap);
832 832
833 /* PMP is reset, SErrors cannot be trusted, scan all */ 833 /* PMP is reset, SErrors cannot be trusted, scan all */
834 ata_port_for_each_link(tlink, ap) 834 ata_port_for_each_link(tlink, ap) {
835 ata_ehi_schedule_probe(&tlink->eh_context.i); 835 struct ata_eh_context *ehc = &tlink->eh_context;
836
837 ehc->i.probe_mask |= ATA_ALL_DEVICES;
838 ehc->i.action |= ATA_EH_RESET;
839 }
836 } 840 }
837 841
838 /* If revalidation is requested, revalidate and reconfigure; 842 /* If revalidation is requested, revalidate and reconfigure;
@@ -847,7 +851,7 @@ static int sata_pmp_eh_recover_pmp(struct ata_port *ap,
847 tries--; 851 tries--;
848 852
849 if (rc == -ENODEV) { 853 if (rc == -ENODEV) {
850 ehc->i.probe_mask |= 1; 854 ehc->i.probe_mask |= ATA_ALL_DEVICES;
851 detach = 1; 855 detach = 1;
852 /* give it just two more chances */ 856 /* give it just two more chances */
853 tries = min(tries, 2); 857 tries = min(tries, 2);