|
Lines 4695-4701
static void atapi_pio_bytes(struct ata_q
Link Here
|
| 4695 |
if (do_write != i_write) |
4695 |
if (do_write != i_write) |
| 4696 |
goto err_out; |
4696 |
goto err_out; |
| 4697 |
|
4697 |
|
| 4698 |
VPRINTK("ata%u: xfering %d bytes\n", ap->print_id, bytes); |
4698 |
if (ap->print_id == 2) |
|
|
4699 |
printk(KERN_ERR "ata%u: xfering %d bytes\n", ap->print_id, bytes); |
| 4699 |
|
4700 |
|
| 4700 |
__atapi_pio_bytes(qc, bytes); |
4701 |
__atapi_pio_bytes(qc, bytes); |
| 4701 |
|
4702 |
|
|
Lines 4809-4816
int ata_hsm_move(struct ata_port *ap, st
Link Here
|
| 4809 |
WARN_ON(in_wq != ata_hsm_ok_in_wq(ap, qc)); |
4810 |
WARN_ON(in_wq != ata_hsm_ok_in_wq(ap, qc)); |
| 4810 |
|
4811 |
|
| 4811 |
fsm_start: |
4812 |
fsm_start: |
| 4812 |
DPRINTK("ata%u: protocol %d task_state %d (dev_stat 0x%X)\n", |
4813 |
if (ap->print_id == 2) |
| 4813 |
ap->print_id, qc->tf.protocol, ap->hsm_task_state, status); |
4814 |
printk(KERN_ERR "ata%u: protocol %d task_state %d (dev_stat 0x%X)\n", |
|
|
4815 |
ap->print_id, qc->tf.protocol, ap->hsm_task_state, status); |
| 4814 |
|
4816 |
|
| 4815 |
switch (ap->hsm_task_state) { |
4817 |
switch (ap->hsm_task_state) { |
| 4816 |
case HSM_ST_FIRST: |
4818 |
case HSM_ST_FIRST: |
|
Lines 4988-4995
fsm_start:
Link Here
|
| 4988 |
} |
4990 |
} |
| 4989 |
|
4991 |
|
| 4990 |
/* no more data to transfer */ |
4992 |
/* no more data to transfer */ |
| 4991 |
DPRINTK("ata%u: dev %u command complete, drv_stat 0x%x\n", |
4993 |
if (ap->print_id == 2) |
| 4992 |
ap->print_id, qc->dev->devno, status); |
4994 |
printk(KERN_ERR "ata%u: dev %u command complete, drv_stat 0x%x\n", |
|
|
4995 |
ap->print_id, qc->dev->devno, status); |
| 4993 |
|
4996 |
|
| 4994 |
WARN_ON(qc->err_mask); |
4997 |
WARN_ON(qc->err_mask); |
| 4995 |
|
4998 |
|
|
Lines 5522-5529
inline unsigned int ata_host_intr (struc
Link Here
|
| 5522 |
struct ata_eh_info *ehi = &ap->eh_info; |
5525 |
struct ata_eh_info *ehi = &ap->eh_info; |
| 5523 |
u8 status, host_stat = 0; |
5526 |
u8 status, host_stat = 0; |
| 5524 |
|
5527 |
|
| 5525 |
VPRINTK("ata%u: protocol %d task_state %d\n", |
5528 |
if (ap->print_id == 2) |
| 5526 |
ap->print_id, qc->tf.protocol, ap->hsm_task_state); |
5529 |
printk(KERN_ERR "ata%u: protocol %d task_state %d\n", |
|
|
5530 |
ap->print_id, qc->tf.protocol, ap->hsm_task_state); |
| 5527 |
|
5531 |
|
| 5528 |
/* Check whether we are expecting interrupt in this state */ |
5532 |
/* Check whether we are expecting interrupt in this state */ |
| 5529 |
switch (ap->hsm_task_state) { |
5533 |
switch (ap->hsm_task_state) { |
|
Lines 5544-5551
inline unsigned int ata_host_intr (struc
Link Here
|
| 5544 |
qc->tf.protocol == ATA_PROT_ATAPI_DMA) { |
5548 |
qc->tf.protocol == ATA_PROT_ATAPI_DMA) { |
| 5545 |
/* check status of DMA engine */ |
5549 |
/* check status of DMA engine */ |
| 5546 |
host_stat = ap->ops->bmdma_status(ap); |
5550 |
host_stat = ap->ops->bmdma_status(ap); |
| 5547 |
VPRINTK("ata%u: host_stat 0x%X\n", |
5551 |
|
| 5548 |
ap->print_id, host_stat); |
5552 |
if (ap->print_id == 2) |
|
|
5553 |
printk(KERN_ERR "ata%u: host_stat 0x%X\n", |
| 5554 |
ap->print_id, host_stat); |
| 5549 |
|
5555 |
|
| 5550 |
/* if it's not our irq... */ |
5556 |
/* if it's not our irq... */ |
| 5551 |
if (!(host_stat & ATA_DMA_INTR)) |
5557 |
if (!(host_stat & ATA_DMA_INTR)) |