aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-core.c6
-rw-r--r--drivers/ata/libata.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 4ac53ef0e4b0..883276388207 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -309,7 +309,8 @@ int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev,
309 tf->flags |= tf_flags; 309 tf->flags |= tf_flags;
310 310
311 if ((dev->flags & (ATA_DFLAG_PIO | ATA_DFLAG_NCQ_OFF | 311 if ((dev->flags & (ATA_DFLAG_PIO | ATA_DFLAG_NCQ_OFF |
312 ATA_DFLAG_NCQ)) == ATA_DFLAG_NCQ) { 312 ATA_DFLAG_NCQ)) == ATA_DFLAG_NCQ &&
313 likely(tag != ATA_TAG_INTERNAL)) {
313 /* yay, NCQ */ 314 /* yay, NCQ */
314 if (!lba_48_ok(block, n_block)) 315 if (!lba_48_ok(block, n_block))
315 return -ERANGE; 316 return -ERANGE;
@@ -3533,8 +3534,7 @@ static unsigned int ata_dev_init_params(struct ata_device *dev,
3533 * LOCKING: 3534 * LOCKING:
3534 * spin_lock_irqsave(host lock) 3535 * spin_lock_irqsave(host lock)
3535 */ 3536 */
3536 3537void ata_sg_clean(struct ata_queued_cmd *qc)
3537static void ata_sg_clean(struct ata_queued_cmd *qc)
3538{ 3538{
3539 struct ata_port *ap = qc->ap; 3539 struct ata_port *ap = qc->ap;
3540 struct scatterlist *sg = qc->__sg; 3540 struct scatterlist *sg = qc->__sg;
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h
index 60576b1237e4..1ff3f59504c9 100644
--- a/drivers/ata/libata.h
+++ b/drivers/ata/libata.h
@@ -73,6 +73,7 @@ extern int sata_down_spd_limit(struct ata_port *ap);
73extern int sata_set_spd_needed(struct ata_port *ap); 73extern int sata_set_spd_needed(struct ata_port *ap);
74extern int ata_down_xfermask_limit(struct ata_device *dev, int force_pio0); 74extern int ata_down_xfermask_limit(struct ata_device *dev, int force_pio0);
75extern int ata_set_mode(struct ata_port *ap, struct ata_device **r_failed_dev); 75extern int ata_set_mode(struct ata_port *ap, struct ata_device **r_failed_dev);
76extern void ata_sg_clean(struct ata_queued_cmd *qc);
76extern void ata_qc_free(struct ata_queued_cmd *qc); 77extern void ata_qc_free(struct ata_queued_cmd *qc);
77extern void ata_qc_issue(struct ata_queued_cmd *qc); 78extern void ata_qc_issue(struct ata_queued_cmd *qc);
78extern void __ata_qc_complete(struct ata_queued_cmd *qc); 79extern void __ata_qc_complete(struct ata_queued_cmd *qc);