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>
This commit is contained in:
committed by
Bartlomiej Zolnierkiewicz
parent
4cad085efb
commit
152fe1cc38
@@ -602,7 +602,6 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout)
|
|||||||
ide_expiry_t *expiry = NULL;
|
ide_expiry_t *expiry = NULL;
|
||||||
u32 tf_flags;
|
u32 tf_flags;
|
||||||
u16 bcount;
|
u16 bcount;
|
||||||
u8 scsi = !!(drive->dev_flags & IDE_DFLAG_SCSI);
|
|
||||||
|
|
||||||
/* We haven't transferred any data yet */
|
/* We haven't transferred any data yet */
|
||||||
pc->xferred = 0;
|
pc->xferred = 0;
|
||||||
@@ -612,10 +611,6 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout)
|
|||||||
tf_flags = IDE_TFLAG_OUT_NSECT | IDE_TFLAG_OUT_LBAL;
|
tf_flags = IDE_TFLAG_OUT_NSECT | IDE_TFLAG_OUT_LBAL;
|
||||||
bcount = ide_cd_get_xferlen(hwif->hwgroup->rq);
|
bcount = ide_cd_get_xferlen(hwif->hwgroup->rq);
|
||||||
expiry = ide_cd_expiry;
|
expiry = ide_cd_expiry;
|
||||||
} else if (scsi) {
|
|
||||||
tf_flags = 0;
|
|
||||||
bcount = min(pc->req_xfer, 63 * 1024);
|
|
||||||
expiry = ide_scsi_expiry;
|
|
||||||
} else {
|
} else {
|
||||||
tf_flags = IDE_TFLAG_OUT_DEVICE;
|
tf_flags = IDE_TFLAG_OUT_DEVICE;
|
||||||
bcount = ((drive->media == ide_tape) ?
|
bcount = ((drive->media == ide_tape) ?
|
||||||
@@ -630,13 +625,8 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout)
|
|||||||
|
|
||||||
if (((pc->flags & PC_FLAG_DMA_OK) &&
|
if (((pc->flags & PC_FLAG_DMA_OK) &&
|
||||||
(drive->dev_flags & IDE_DFLAG_USING_DMA)) ||
|
(drive->dev_flags & IDE_DFLAG_USING_DMA)) ||
|
||||||
drive->dma) {
|
drive->dma)
|
||||||
if (scsi)
|
|
||||||
hwif->sg_mapped = 1;
|
|
||||||
drive->dma = !hwif->dma_ops->dma_setup(drive);
|
drive->dma = !hwif->dma_ops->dma_setup(drive);
|
||||||
if (scsi)
|
|
||||||
hwif->sg_mapped = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!drive->dma)
|
if (!drive->dma)
|
||||||
pc->flags &= ~PC_FLAG_DMA_OK;
|
pc->flags &= ~PC_FLAG_DMA_OK;
|
||||||
|
Reference in New Issue
Block a user