diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 20:25:28 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 20:25:28 -0500 |
commit | 122401ce39faab22b29eb11b20e4342f7f566b1b (patch) | |
tree | e164f8fa5decc4b7182e7d66b1634c7fd43b9f7f /drivers/scsi/sata_sx4.c | |
parent | 94ec1ef1cf29e137e5c79372e432b040c6604be6 (diff) | |
parent | 6e9d6b8ee4e0c37d3952256e6472c57490d6780d (diff) |
Merge branch 'master'
Diffstat (limited to 'drivers/scsi/sata_sx4.c')
-rw-r--r-- | drivers/scsi/sata_sx4.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/scsi/sata_sx4.c b/drivers/scsi/sata_sx4.c index 1908c588ebb9..ea921e693689 100644 --- a/drivers/scsi/sata_sx4.c +++ b/drivers/scsi/sata_sx4.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/delay.h> | 38 | #include <linux/delay.h> |
39 | #include <linux/interrupt.h> | 39 | #include <linux/interrupt.h> |
40 | #include <linux/sched.h> | 40 | #include <linux/sched.h> |
41 | #include <linux/device.h> | ||
41 | #include "scsi.h" | 42 | #include "scsi.h" |
42 | #include <scsi/scsi_host.h> | 43 | #include <scsi/scsi_host.h> |
43 | #include <linux/libata.h> | 44 | #include <linux/libata.h> |
@@ -719,7 +720,7 @@ static inline unsigned int pdc20621_host_intr( struct ata_port *ap, | |||
719 | VPRINTK("ata%u: read hdma, 0x%x 0x%x\n", ap->id, | 720 | VPRINTK("ata%u: read hdma, 0x%x 0x%x\n", ap->id, |
720 | readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); | 721 | readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); |
721 | /* get drive status; clear intr; complete txn */ | 722 | /* get drive status; clear intr; complete txn */ |
722 | ata_qc_complete(qc, ata_wait_idle(ap)); | 723 | ata_qc_complete(qc, ac_err_mask(ata_wait_idle(ap))); |
723 | pdc20621_pop_hdma(qc); | 724 | pdc20621_pop_hdma(qc); |
724 | } | 725 | } |
725 | 726 | ||
@@ -757,7 +758,7 @@ static inline unsigned int pdc20621_host_intr( struct ata_port *ap, | |||
757 | VPRINTK("ata%u: write ata, 0x%x 0x%x\n", ap->id, | 758 | VPRINTK("ata%u: write ata, 0x%x 0x%x\n", ap->id, |
758 | readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); | 759 | readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); |
759 | /* get drive status; clear intr; complete txn */ | 760 | /* get drive status; clear intr; complete txn */ |
760 | ata_qc_complete(qc, ata_wait_idle(ap)); | 761 | ata_qc_complete(qc, ac_err_mask(ata_wait_idle(ap))); |
761 | pdc20621_pop_hdma(qc); | 762 | pdc20621_pop_hdma(qc); |
762 | } | 763 | } |
763 | handled = 1; | 764 | handled = 1; |
@@ -767,7 +768,7 @@ static inline unsigned int pdc20621_host_intr( struct ata_port *ap, | |||
767 | 768 | ||
768 | status = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); | 769 | status = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); |
769 | DPRINTK("BUS_NODATA (drv_stat 0x%X)\n", status); | 770 | DPRINTK("BUS_NODATA (drv_stat 0x%X)\n", status); |
770 | ata_qc_complete(qc, status); | 771 | ata_qc_complete(qc, ac_err_mask(status)); |
771 | handled = 1; | 772 | handled = 1; |
772 | 773 | ||
773 | } else { | 774 | } else { |
@@ -882,7 +883,7 @@ static void pdc_eng_timeout(struct ata_port *ap) | |||
882 | case ATA_PROT_DMA: | 883 | case ATA_PROT_DMA: |
883 | case ATA_PROT_NODATA: | 884 | case ATA_PROT_NODATA: |
884 | printk(KERN_ERR "ata%u: command timeout\n", ap->id); | 885 | printk(KERN_ERR "ata%u: command timeout\n", ap->id); |
885 | ata_qc_complete(qc, ata_wait_idle(ap) | ATA_ERR); | 886 | ata_qc_complete(qc, __ac_err_mask(ata_wait_idle(ap))); |
886 | break; | 887 | break; |
887 | 888 | ||
888 | default: | 889 | default: |
@@ -891,7 +892,7 @@ static void pdc_eng_timeout(struct ata_port *ap) | |||
891 | printk(KERN_ERR "ata%u: unknown timeout, cmd 0x%x stat 0x%x\n", | 892 | printk(KERN_ERR "ata%u: unknown timeout, cmd 0x%x stat 0x%x\n", |
892 | ap->id, qc->tf.command, drv_stat); | 893 | ap->id, qc->tf.command, drv_stat); |
893 | 894 | ||
894 | ata_qc_complete(qc, drv_stat); | 895 | ata_qc_complete(qc, ac_err_mask(drv_stat)); |
895 | break; | 896 | break; |
896 | } | 897 | } |
897 | 898 | ||
@@ -1386,7 +1387,7 @@ static int pdc_sata_init_one (struct pci_dev *pdev, const struct pci_device_id * | |||
1386 | int rc; | 1387 | int rc; |
1387 | 1388 | ||
1388 | if (!printed_version++) | 1389 | if (!printed_version++) |
1389 | printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); | 1390 | dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n"); |
1390 | 1391 | ||
1391 | /* | 1392 | /* |
1392 | * If this driver happens to only be useful on Apple's K2, then | 1393 | * If this driver happens to only be useful on Apple's K2, then |