aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-tape.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:43 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:43 -0400
commit4ab3d50224e35811b3351c28e63057595e8406e6 (patch)
treeccd1a729543defa03df97f0dc0b416f53c793dcc /drivers/ide/ide-tape.c
parenta36223b0dc14606b5c80aacbbe6288133693a841 (diff)
ide: set IDE_AFLAG_DRQ_INTERRUPT in do_identify()
Set IDE_AFLAG_DRQ_INTERRUPT in do_identify() instead of ATAPI device drivers *_setup() methods. While at it: - use ata_id_cdb_intr() There should be no functional changes caused by this patch. Cc: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r--drivers/ide/ide-tape.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index 27665e3a41cb..25ac60f53273 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -2185,7 +2185,6 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
2185 unsigned long t; 2185 unsigned long t;
2186 int speed; 2186 int speed;
2187 int buffer_size; 2187 int buffer_size;
2188 u8 gcw[2];
2189 u16 *ctl = (u16 *)&tape->caps[12]; 2188 u16 *ctl = (u16 *)&tape->caps[12];
2190 2189
2191 drive->pc_callback = ide_tape_callback; 2190 drive->pc_callback = ide_tape_callback;
@@ -2212,12 +2211,6 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
2212 tape->name[2] = '0' + minor; 2211 tape->name[2] = '0' + minor;
2213 tape->chrdev_dir = IDETAPE_DIR_NONE; 2212 tape->chrdev_dir = IDETAPE_DIR_NONE;
2214 2213
2215 *((u16 *)&gcw) = drive->id[ATA_ID_CONFIG];
2216
2217 /* Command packet DRQ type */
2218 if (((gcw[0] & 0x60) >> 5) == 1)
2219 set_bit(IDE_AFLAG_DRQ_INTERRUPT, &drive->atapi_flags);
2220
2221 idetape_get_inquiry_results(drive); 2214 idetape_get_inquiry_results(drive);
2222 idetape_get_mode_sense_results(drive); 2215 idetape_get_mode_sense_results(drive);
2223 ide_tape_get_bsize_from_bdesc(drive); 2216 ide_tape_get_bsize_from_bdesc(drive);