aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlbert Lee <albertcc@tw.ibm.com>2006-03-25 04:39:34 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-29 17:21:53 -0500
commit13ee4628ce68d1e54df01cc31239c8887c59e65d (patch)
tree7d77a0b9e45b437c112d66d4968d5ae24a77e3cf /drivers
parentcf2f7689f94ee02e52d5331bc1a87421a67a882c (diff)
[PATCH] libata-dev: Fix merge problem with upstream
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/libata-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 76418289aa..9ef5b8ab5b 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -1299,6 +1299,7 @@ static int ata_dev_configure(struct ata_port *ap, struct ata_device *dev,
1299 ap->id, device, dev->multi_count); 1299 ap->id, device, dev->multi_count);
1300 } 1300 }
1301 1301
1302 dev->cdb_len = 16;
1302 } 1303 }
1303 1304
1304 /* ATAPI-specific feature tests */ 1305 /* ATAPI-specific feature tests */
@@ -4288,7 +4289,7 @@ unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc)
4288 /* send cdb by polling if no cdb interrupt */ 4289 /* send cdb by polling if no cdb interrupt */
4289 if ((!(qc->dev->flags & ATA_DFLAG_CDB_INTR)) || 4290 if ((!(qc->dev->flags & ATA_DFLAG_CDB_INTR)) ||
4290 (qc->tf.flags & ATA_TFLAG_POLLING)) 4291 (qc->tf.flags & ATA_TFLAG_POLLING))
4291 ata_port_queue_task(ap, atapi_packet_task, ap, 0); 4292 ata_port_queue_task(ap, ata_pio_task, ap, 0);
4292 break; 4293 break;
4293 4294
4294 case ATA_PROT_ATAPI_DMA: 4295 case ATA_PROT_ATAPI_DMA:
@@ -4300,7 +4301,7 @@ unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc)
4300 4301
4301 /* send cdb by polling if no cdb interrupt */ 4302 /* send cdb by polling if no cdb interrupt */
4302 if (!(qc->dev->flags & ATA_DFLAG_CDB_INTR)) 4303 if (!(qc->dev->flags & ATA_DFLAG_CDB_INTR))
4303 ata_port_queue_task(ap, atapi_packet_task, ap, 0); 4304 ata_port_queue_task(ap, ata_pio_task, ap, 0);
4304 break; 4305 break;
4305 4306
4306 default: 4307 default: