diff options
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 0b97e84d3af6..f464ca1fa261 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -49,6 +49,7 @@ const struct ata_port_operations ata_sff_port_ops = { | |||
49 | .thaw = ata_sff_thaw, | 49 | .thaw = ata_sff_thaw, |
50 | .prereset = ata_sff_prereset, | 50 | .prereset = ata_sff_prereset, |
51 | .softreset = ata_sff_softreset, | 51 | .softreset = ata_sff_softreset, |
52 | .hardreset = sata_sff_hardreset, | ||
52 | .postreset = ata_sff_postreset, | 53 | .postreset = ata_sff_postreset, |
53 | .error_handler = ata_sff_error_handler, | 54 | .error_handler = ata_sff_error_handler, |
54 | .post_internal_cmd = ata_sff_post_internal_cmd, | 55 | .post_internal_cmd = ata_sff_post_internal_cmd, |
@@ -2031,14 +2032,12 @@ void ata_sff_error_handler(struct ata_port *ap) | |||
2031 | 2032 | ||
2032 | /* PIO and DMA engines have been stopped, perform recovery */ | 2033 | /* PIO and DMA engines have been stopped, perform recovery */ |
2033 | 2034 | ||
2034 | /* ata_sff_softreset and sata_sff_hardreset are inherited to | 2035 | /* Ignore ata_sff_softreset if ctl isn't accessible and |
2035 | * all SFF drivers from ata_sff_port_ops. Ignore softreset if | 2036 | * built-in hardresets if SCR access isn't available. |
2036 | * ctl isn't accessible. Ignore hardreset if SCR access isn't | ||
2037 | * available. | ||
2038 | */ | 2037 | */ |
2039 | if (softreset == ata_sff_softreset && !ap->ioaddr.ctl_addr) | 2038 | if (softreset == ata_sff_softreset && !ap->ioaddr.ctl_addr) |
2040 | softreset = NULL; | 2039 | softreset = NULL; |
2041 | if (hardreset == sata_sff_hardreset && !sata_scr_valid(&ap->link)) | 2040 | if (ata_is_builtin_hardreset(hardreset) && !sata_scr_valid(&ap->link)) |
2042 | hardreset = NULL; | 2041 | hardreset = NULL; |
2043 | 2042 | ||
2044 | ata_do_eh(ap, ap->ops->prereset, softreset, hardreset, | 2043 | ata_do_eh(ap, ap->ops->prereset, softreset, hardreset, |