aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-01-22 23:09:36 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-01-26 22:36:27 -0500
commit9a3d9eb0177eb10500d49cd283b35576082a522d (patch)
tree3a8279ea3f263338cd02918131a36ee716cad1a8 /include/linux
parent11a56d2439259892319df81cf1582687d7e7fde5 (diff)
[PATCH] libata: return AC_ERR_* from issue functions
Return AC_ERR_* mask from issue fuctions instead of 0/-1. This enables things like failing a qc with AC_ERR_HSM when the device doesn't set DRDY when the qc is about to be issued. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/libata.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 8ff3a7f6f63c..b1ea2f98bfbb 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -427,7 +427,7 @@ struct ata_port_operations {
427 void (*bmdma_start) (struct ata_queued_cmd *qc); 427 void (*bmdma_start) (struct ata_queued_cmd *qc);
428 428
429 void (*qc_prep) (struct ata_queued_cmd *qc); 429 void (*qc_prep) (struct ata_queued_cmd *qc);
430 int (*qc_issue) (struct ata_queued_cmd *qc); 430 unsigned int (*qc_issue) (struct ata_queued_cmd *qc);
431 431
432 void (*eng_timeout) (struct ata_port *ap); 432 void (*eng_timeout) (struct ata_port *ap);
433 433
@@ -515,7 +515,7 @@ extern void ata_port_stop (struct ata_port *ap);
515extern void ata_host_stop (struct ata_host_set *host_set); 515extern void ata_host_stop (struct ata_host_set *host_set);
516extern irqreturn_t ata_interrupt (int irq, void *dev_instance, struct pt_regs *regs); 516extern irqreturn_t ata_interrupt (int irq, void *dev_instance, struct pt_regs *regs);
517extern void ata_qc_prep(struct ata_queued_cmd *qc); 517extern void ata_qc_prep(struct ata_queued_cmd *qc);
518extern int ata_qc_issue_prot(struct ata_queued_cmd *qc); 518extern unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc);
519extern void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf, 519extern void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf,
520 unsigned int buflen); 520 unsigned int buflen);
521extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, 521extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg,