diff options
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index aafe82bf5e2e..90092c1aae53 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -1194,6 +1194,11 @@ void ata_dev_disable(struct ata_device *dev) | |||
1194 | ata_acpi_on_disable(dev); | 1194 | ata_acpi_on_disable(dev); |
1195 | ata_down_xfermask_limit(dev, ATA_DNXFER_FORCE_PIO0 | ATA_DNXFER_QUIET); | 1195 | ata_down_xfermask_limit(dev, ATA_DNXFER_FORCE_PIO0 | ATA_DNXFER_QUIET); |
1196 | dev->class++; | 1196 | dev->class++; |
1197 | |||
1198 | /* From now till the next successful probe, ering is used to | ||
1199 | * track probe failures. Clear accumulated device error info. | ||
1200 | */ | ||
1201 | ata_ering_clear(&dev->ering); | ||
1197 | } | 1202 | } |
1198 | 1203 | ||
1199 | /** | 1204 | /** |
@@ -2765,6 +2770,8 @@ static int ata_eh_revalidate_and_attach(struct ata_link *link, | |||
2765 | readid_flags, dev->id); | 2770 | readid_flags, dev->id); |
2766 | switch (rc) { | 2771 | switch (rc) { |
2767 | case 0: | 2772 | case 0: |
2773 | /* clear error info accumulated during probe */ | ||
2774 | ata_ering_clear(&dev->ering); | ||
2768 | new_mask |= 1 << dev->devno; | 2775 | new_mask |= 1 << dev->devno; |
2769 | break; | 2776 | break; |
2770 | case -ENOENT: | 2777 | case -ENOENT: |