diff options
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 3401248180c9..f60988f5e01b 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -3541,6 +3541,10 @@ int ata_std_prereset(struct ata_link *link, unsigned long deadline) | |||
3541 | "link for reset (errno=%d)\n", rc); | 3541 | "link for reset (errno=%d)\n", rc); |
3542 | } | 3542 | } |
3543 | 3543 | ||
3544 | /* no point in trying softreset on offline link */ | ||
3545 | if (ata_link_offline(link)) | ||
3546 | ehc->i.action &= ~ATA_EH_SOFTRESET; | ||
3547 | |||
3544 | return 0; | 3548 | return 0; |
3545 | } | 3549 | } |
3546 | 3550 | ||