diff options
Diffstat (limited to 'drivers/ata/sata_nv.c')
-rw-r--r-- | drivers/ata/sata_nv.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index 86a40582999c..1eb4e020eb5c 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c | |||
@@ -1594,9 +1594,21 @@ static int nv_hardreset(struct ata_link *link, unsigned int *class, | |||
1594 | !ata_dev_enabled(link->device)) | 1594 | !ata_dev_enabled(link->device)) |
1595 | sata_link_hardreset(link, sata_deb_timing_hotplug, deadline, | 1595 | sata_link_hardreset(link, sata_deb_timing_hotplug, deadline, |
1596 | NULL, NULL); | 1596 | NULL, NULL); |
1597 | else if (!(ehc->i.flags & ATA_EHI_QUIET)) | 1597 | else { |
1598 | ata_link_printk(link, KERN_INFO, | 1598 | const unsigned long *timing = sata_ehc_deb_timing(ehc); |
1599 | "nv: skipping hardreset on occupied port\n"); | 1599 | int rc; |
1600 | |||
1601 | if (!(ehc->i.flags & ATA_EHI_QUIET)) | ||
1602 | ata_link_printk(link, KERN_INFO, "nv: skipping " | ||
1603 | "hardreset on occupied port\n"); | ||
1604 | |||
1605 | /* make sure the link is online */ | ||
1606 | rc = sata_link_resume(link, timing, deadline); | ||
1607 | /* whine about phy resume failure but proceed */ | ||
1608 | if (rc && rc != -EOPNOTSUPP) | ||
1609 | ata_link_printk(link, KERN_WARNING, "failed to resume " | ||
1610 | "link (errno=%d)\n", rc); | ||
1611 | } | ||
1600 | 1612 | ||
1601 | /* device signature acquisition is unreliable */ | 1613 | /* device signature acquisition is unreliable */ |
1602 | return -EAGAIN; | 1614 | return -EAGAIN; |