diff options
author | Tejun Heo <htejun@gmail.com> | 2006-01-22 23:09:36 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-26 22:36:27 -0500 |
commit | 9a3d9eb0177eb10500d49cd283b35576082a522d (patch) | |
tree | 3a8279ea3f263338cd02918131a36ee716cad1a8 /include/linux | |
parent | 11a56d2439259892319df81cf1582687d7e7fde5 (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.h | 4 |
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); | |||
515 | extern void ata_host_stop (struct ata_host_set *host_set); | 515 | extern void ata_host_stop (struct ata_host_set *host_set); |
516 | extern irqreturn_t ata_interrupt (int irq, void *dev_instance, struct pt_regs *regs); | 516 | extern irqreturn_t ata_interrupt (int irq, void *dev_instance, struct pt_regs *regs); |
517 | extern void ata_qc_prep(struct ata_queued_cmd *qc); | 517 | extern void ata_qc_prep(struct ata_queued_cmd *qc); |
518 | extern int ata_qc_issue_prot(struct ata_queued_cmd *qc); | 518 | extern unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc); |
519 | extern void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf, | 519 | extern void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf, |
520 | unsigned int buflen); | 520 | unsigned int buflen); |
521 | extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, | 521 | extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, |