aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index fa205d7c5bea..cbdbfb5eaeaa 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -75,9 +75,9 @@ const unsigned long sata_deb_timing_long[] = { 100, 2000, 5000 };
75 75
76const struct ata_port_operations ata_base_port_ops = { 76const struct ata_port_operations ata_base_port_ops = {
77 .irq_clear = ata_noop_irq_clear, 77 .irq_clear = ata_noop_irq_clear,
78 .prereset = ata_std_prereset, 78 .prereset = ata_sff_prereset,
79 .hardreset = sata_std_hardreset, 79 .hardreset = sata_sff_hardreset,
80 .postreset = ata_std_postreset, 80 .postreset = ata_sff_postreset,
81 .error_handler = ata_std_error_handler, 81 .error_handler = ata_std_error_handler,
82}; 82};
83 83
@@ -3425,7 +3425,7 @@ int sata_link_resume(struct ata_link *link, const unsigned long *params,
3425} 3425}
3426 3426
3427/** 3427/**
3428 * ata_std_prereset - prepare for reset 3428 * ata_sff_prereset - prepare for reset
3429 * @link: ATA link to be reset 3429 * @link: ATA link to be reset
3430 * @deadline: deadline jiffies for the operation 3430 * @deadline: deadline jiffies for the operation
3431 * 3431 *
@@ -3441,7 +3441,7 @@ int sata_link_resume(struct ata_link *link, const unsigned long *params,
3441 * RETURNS: 3441 * RETURNS:
3442 * 0 on success, -errno otherwise. 3442 * 0 on success, -errno otherwise.
3443 */ 3443 */
3444int ata_std_prereset(struct ata_link *link, unsigned long deadline) 3444int ata_sff_prereset(struct ata_link *link, unsigned long deadline)
3445{ 3445{
3446 struct ata_port *ap = link->ap; 3446 struct ata_port *ap = link->ap;
3447 struct ata_eh_context *ehc = &link->eh_context; 3447 struct ata_eh_context *ehc = &link->eh_context;
@@ -3463,7 +3463,7 @@ int ata_std_prereset(struct ata_link *link, unsigned long deadline)
3463 3463
3464 /* wait for !BSY if we don't know that no device is attached */ 3464 /* wait for !BSY if we don't know that no device is attached */
3465 if (!ata_link_offline(link)) { 3465 if (!ata_link_offline(link)) {
3466 rc = ata_wait_ready(ap, deadline); 3466 rc = ata_sff_wait_ready(ap, deadline);
3467 if (rc && rc != -ENODEV) { 3467 if (rc && rc != -ENODEV) {
3468 ata_link_printk(link, KERN_WARNING, "device not ready " 3468 ata_link_printk(link, KERN_WARNING, "device not ready "
3469 "(errno=%d), forcing hardreset\n", rc); 3469 "(errno=%d), forcing hardreset\n", rc);
@@ -3535,7 +3535,7 @@ int sata_link_hardreset(struct ata_link *link, const unsigned long *timing,
3535} 3535}
3536 3536
3537/** 3537/**
3538 * ata_std_postreset - standard postreset callback 3538 * ata_sff_postreset - standard postreset callback
3539 * @link: the target ata_link 3539 * @link: the target ata_link
3540 * @classes: classes of attached devices 3540 * @classes: classes of attached devices
3541 * 3541 *
@@ -3546,7 +3546,7 @@ int sata_link_hardreset(struct ata_link *link, const unsigned long *timing,
3546 * LOCKING: 3546 * LOCKING:
3547 * Kernel thread context (may sleep) 3547 * Kernel thread context (may sleep)
3548 */ 3548 */
3549void ata_std_postreset(struct ata_link *link, unsigned int *classes) 3549void ata_sff_postreset(struct ata_link *link, unsigned int *classes)
3550{ 3550{
3551 struct ata_port *ap = link->ap; 3551 struct ata_port *ap = link->ap;
3552 u32 serror; 3552 u32 serror;