diff options
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 02e7ba43a3b3..baef749ec528 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -3962,10 +3962,8 @@ int ata_std_prereset(struct ata_link *link, unsigned long deadline) | |||
3962 | "link for reset (errno=%d)\n", rc); | 3962 | "link for reset (errno=%d)\n", rc); |
3963 | } | 3963 | } |
3964 | 3964 | ||
3965 | /* Wait for !BSY if the controller can wait for the first D2H | 3965 | /* wait for !BSY if we don't know that no device is attached */ |
3966 | * Reg FIS and we don't know that no device is attached. | 3966 | if (!ata_link_offline(link)) { |
3967 | */ | ||
3968 | if (!(link->flags & ATA_LFLAG_SKIP_D2H_BSY) && !ata_link_offline(link)) { | ||
3969 | rc = ata_wait_ready(ap, deadline); | 3967 | rc = ata_wait_ready(ap, deadline); |
3970 | if (rc && rc != -ENODEV) { | 3968 | if (rc && rc != -ENODEV) { |
3971 | ata_link_printk(link, KERN_WARNING, "device not ready " | 3969 | ata_link_printk(link, KERN_WARNING, "device not ready " |