aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@googlemail.com>2009-01-02 10:12:53 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-02 10:12:53 -0500
commit152fe1cc38ebebb81724663e3b1e1e10272a729e (patch)
treeaa3142967123eccd83bc8e169f3cea9cdcfa68f5 /drivers
parent4cad085efbce8dcc5006b0d1034089758b4fc7ba (diff)
ide-atapi: remove ide-scsi remnants from ide_issue_pc
Signed-off-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/ide-atapi.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index c110329ccb13..ff6b567c0199 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -602,7 +602,6 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout)
602 ide_expiry_t *expiry = NULL; 602 ide_expiry_t *expiry = NULL;
603 u32 tf_flags; 603 u32 tf_flags;
604 u16 bcount; 604 u16 bcount;
605 u8 scsi = !!(drive->dev_flags & IDE_DFLAG_SCSI);
606 605
607 /* We haven't transferred any data yet */ 606 /* We haven't transferred any data yet */
608 pc->xferred = 0; 607 pc->xferred = 0;
@@ -612,10 +611,6 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout)
612 tf_flags = IDE_TFLAG_OUT_NSECT | IDE_TFLAG_OUT_LBAL; 611 tf_flags = IDE_TFLAG_OUT_NSECT | IDE_TFLAG_OUT_LBAL;
613 bcount = ide_cd_get_xferlen(hwif->hwgroup->rq); 612 bcount = ide_cd_get_xferlen(hwif->hwgroup->rq);
614 expiry = ide_cd_expiry; 613 expiry = ide_cd_expiry;
615 } else if (scsi) {
616 tf_flags = 0;
617 bcount = min(pc->req_xfer, 63 * 1024);
618 expiry = ide_scsi_expiry;
619 } else { 614 } else {
620 tf_flags = IDE_TFLAG_OUT_DEVICE; 615 tf_flags = IDE_TFLAG_OUT_DEVICE;
621 bcount = ((drive->media == ide_tape) ? 616 bcount = ((drive->media == ide_tape) ?
@@ -630,13 +625,8 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout)
630 625
631 if (((pc->flags & PC_FLAG_DMA_OK) && 626 if (((pc->flags & PC_FLAG_DMA_OK) &&
632 (drive->dev_flags & IDE_DFLAG_USING_DMA)) || 627 (drive->dev_flags & IDE_DFLAG_USING_DMA)) ||
633 drive->dma) { 628 drive->dma)
634 if (scsi)
635 hwif->sg_mapped = 1;
636 drive->dma = !hwif->dma_ops->dma_setup(drive); 629 drive->dma = !hwif->dma_ops->dma_setup(drive);
637 if (scsi)
638 hwif->sg_mapped = 0;
639 }
640 630
641 if (!drive->dma) 631 if (!drive->dma)
642 pc->flags &= ~PC_FLAG_DMA_OK; 632 pc->flags &= ~PC_FLAG_DMA_OK;