Skip to content

Commit

Permalink
[PATCH] libata-dev: Fix merge problem with upstream
Browse files Browse the repository at this point in the history
Fix merge problem with upstream.
Changes:
1. add missing dev->cdb_len = 16 for ATA devices
2. use ata_pio_task instead of atapi_packet_task

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Mar 29, 2006
1 parent cf2f768 commit 13ee462
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,7 @@ static int ata_dev_configure(struct ata_port *ap, struct ata_device *dev,
ap->id, device, dev->multi_count);
}

dev->cdb_len = 16;
}

/* ATAPI-specific feature tests */
Expand Down Expand Up @@ -4288,7 +4289,7 @@ unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc)
/* send cdb by polling if no cdb interrupt */
if ((!(qc->dev->flags & ATA_DFLAG_CDB_INTR)) ||
(qc->tf.flags & ATA_TFLAG_POLLING))
ata_port_queue_task(ap, atapi_packet_task, ap, 0);
ata_port_queue_task(ap, ata_pio_task, ap, 0);
break;

case ATA_PROT_ATAPI_DMA:
Expand All @@ -4300,7 +4301,7 @@ unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc)

/* send cdb by polling if no cdb interrupt */
if (!(qc->dev->flags & ATA_DFLAG_CDB_INTR))
ata_port_queue_task(ap, atapi_packet_task, ap, 0);
ata_port_queue_task(ap, ata_pio_task, ap, 0);
break;

default:
Expand Down

0 comments on commit 13ee462

Please sign in to comment.