summaryrefslogtreecommitdiff
path: root/drivers/scsi/libata-core.c
diff options
context:
space:
mode:
authorAlbert Lee <albertcc@tw.ibm.com>2006-03-25 18:07:48 +0800
committerJeff Garzik <jeff@garzik.org>2006-03-29 17:22:36 -0500
commit999bb6f4260f9499fdeab3f8fdcd8b9013eca39e (patch)
tree9ba633841e27207bdbe9e08b76ee912962dd400e /drivers/scsi/libata-core.c
parentc234fb00ea8999076728137d96603b713ad8b53f (diff)
downloadlwn-999bb6f4260f9499fdeab3f8fdcd8b9013eca39e.tar.gz
lwn-999bb6f4260f9499fdeab3f8fdcd8b9013eca39e.zip
[PATCH] libata-dev: irq-pio minor fixes (respin)
irq-pio minor fixes for printk() and comments. Signed-off-by: Albert Lee <albertcc@tw.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r--drivers/scsi/libata-core.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 27078c06119a..d68f5d5b423a 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -1295,7 +1295,7 @@ static int ata_dev_configure(struct ata_port *ap, struct ata_device *dev,
if (dev->id[59] & 0x100) {
dev->multi_count = dev->id[59] & 0xff;
DPRINTK("ata%u: dev %u multi count %u\n",
- ap->id, device, dev->multi_count);
+ ap->id, dev->devno, dev->multi_count);
}
dev->cdb_len = 16;
@@ -3594,6 +3594,9 @@ static int ata_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc,
}
fsm_start:
+ DPRINTK("ata%u: protocol %d task_state %d (dev_stat 0x%X)\n",
+ ap->id, qc->tf.protocol, ap->hsm_task_state, status);
+
switch (ap->hsm_task_state) {
case HSM_ST_FIRST:
/* Send first data block or PACKET CDB */
@@ -3720,6 +3723,7 @@ fsm_start:
ap->hsm_task_state = HSM_ST_IDLE;
+ /* complete taskfile transaction */
if (in_wq)
ata_poll_qc_complete(qc);
else
@@ -4241,9 +4245,6 @@ inline unsigned int ata_host_intr (struct ata_port *ap,
if (unlikely(status & ATA_BUSY))
goto idle_irq;
- DPRINTK("ata%u: protocol %d task_state %d (dev_stat 0x%X)\n",
- ap->id, qc->tf.protocol, ap->hsm_task_state, status);
-
/* ack bmdma irq events */
ap->ops->irq_clear(ap);