diff options
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 58bdc538d229..a570ca47e239 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -2210,6 +2210,10 @@ int ata_eh_reset(struct ata_link *link, int classify, | |||
2210 | */ | 2210 | */ |
2211 | while (ata_eh_reset_timeouts[max_tries] != ULONG_MAX) | 2211 | while (ata_eh_reset_timeouts[max_tries] != ULONG_MAX) |
2212 | max_tries++; | 2212 | max_tries++; |
2213 | if (link->flags & ATA_LFLAG_NO_HRST) | ||
2214 | hardreset = NULL; | ||
2215 | if (link->flags & ATA_LFLAG_NO_SRST) | ||
2216 | softreset = NULL; | ||
2213 | 2217 | ||
2214 | now = jiffies; | 2218 | now = jiffies; |
2215 | deadline = ata_deadline(ehc->last_reset, ATA_EH_RESET_COOL_DOWN); | 2219 | deadline = ata_deadline(ehc->last_reset, ATA_EH_RESET_COOL_DOWN); |