diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/libata-eh.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 7be04bd30bfe..8f8ed4dfb171 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -2335,7 +2335,10 @@ int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
2335 | struct ata_eh_context *ehc = &link->eh_context; | 2335 | struct ata_eh_context *ehc = &link->eh_context; |
2336 | 2336 | ||
2337 | ata_link_for_each_dev(dev, link) { | 2337 | ata_link_for_each_dev(dev, link) { |
2338 | ehc->tries[dev->devno] = ATA_EH_DEV_TRIES; | 2338 | if (link->flags & ATA_LFLAG_NO_RETRY) |
2339 | ehc->tries[dev->devno] = 1; | ||
2340 | else | ||
2341 | ehc->tries[dev->devno] = ATA_EH_DEV_TRIES; | ||
2339 | 2342 | ||
2340 | /* collect port action mask recorded in dev actions */ | 2343 | /* collect port action mask recorded in dev actions */ |
2341 | ehc->i.action |= ehc->i.dev_action[dev->devno] & | 2344 | ehc->i.action |= ehc->i.dev_action[dev->devno] & |