diff options
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 5be8a6058dac..5ae813f54420 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -1408,6 +1408,25 @@ unsigned int ata_sff_qc_issue(struct ata_queued_cmd *qc) | |||
1408 | } | 1408 | } |
1409 | 1409 | ||
1410 | /** | 1410 | /** |
1411 | * ata_sff_qc_fill_rtf - fill result TF using ->sff_tf_read | ||
1412 | * @qc: qc to fill result TF for | ||
1413 | * | ||
1414 | * @qc is finished and result TF needs to be filled. Fill it | ||
1415 | * using ->sff_tf_read. | ||
1416 | * | ||
1417 | * LOCKING: | ||
1418 | * spin_lock_irqsave(host lock) | ||
1419 | * | ||
1420 | * RETURNS: | ||
1421 | * true indicating that result TF is successfully filled. | ||
1422 | */ | ||
1423 | bool ata_sff_qc_fill_rtf(struct ata_queued_cmd *qc) | ||
1424 | { | ||
1425 | qc->ap->ops->sff_tf_read(qc->ap, &qc->result_tf); | ||
1426 | return true; | ||
1427 | } | ||
1428 | |||
1429 | /** | ||
1411 | * ata_sff_host_intr - Handle host interrupt for given (port, task) | 1430 | * ata_sff_host_intr - Handle host interrupt for given (port, task) |
1412 | * @ap: Port on which interrupt arrived (possibly...) | 1431 | * @ap: Port on which interrupt arrived (possibly...) |
1413 | * @qc: Taskfile currently active in engine | 1432 | * @qc: Taskfile currently active in engine |
@@ -2724,6 +2743,7 @@ EXPORT_SYMBOL_GPL(ata_sff_irq_on); | |||
2724 | EXPORT_SYMBOL_GPL(ata_sff_irq_clear); | 2743 | EXPORT_SYMBOL_GPL(ata_sff_irq_clear); |
2725 | EXPORT_SYMBOL_GPL(ata_sff_hsm_move); | 2744 | EXPORT_SYMBOL_GPL(ata_sff_hsm_move); |
2726 | EXPORT_SYMBOL_GPL(ata_sff_qc_issue); | 2745 | EXPORT_SYMBOL_GPL(ata_sff_qc_issue); |
2746 | EXPORT_SYMBOL_GPL(ata_sff_qc_fill_rtf); | ||
2727 | EXPORT_SYMBOL_GPL(ata_sff_host_intr); | 2747 | EXPORT_SYMBOL_GPL(ata_sff_host_intr); |
2728 | EXPORT_SYMBOL_GPL(ata_sff_interrupt); | 2748 | EXPORT_SYMBOL_GPL(ata_sff_interrupt); |
2729 | EXPORT_SYMBOL_GPL(ata_sff_freeze); | 2749 | EXPORT_SYMBOL_GPL(ata_sff_freeze); |