Re: [PATCH 2.6.11-rc3 08/11] ide: remove REQ_DRIVE_TASK handling

From: Bartlomiej Zolnierkiewicz
Date: Thu Feb 24 2005 - 10:54:12 EST


> @@ -945,33 +931,7 @@ static ide_startstop_t execute_drive_cmd
> if (args->tf_out_flags.all != 0)
> return flagged_taskfile(drive, args);
> return do_rw_taskfile(drive, args);
> - } else if (rq->flags & REQ_DRIVE_TASK) {
> - u8 *args = rq->buffer;
> - u8 sel;
> -
> - if (!args)
> - goto done;
> -#ifdef DEBUG
> - printk("%s: DRIVE_TASK_CMD ", drive->name);
> - printk("cmd=0x%02x ", args[0]);
> - printk("fr=0x%02x ", args[1]);
> - printk("ns=0x%02x ", args[2]);
> - printk("sc=0x%02x ", args[3]);
> - printk("lcyl=0x%02x ", args[4]);
> - printk("hcyl=0x%02x ", args[5]);
> - printk("sel=0x%02x\n", args[6]);
> -#endif
> - hwif->OUTB(args[1], IDE_FEATURE_REG);
> - hwif->OUTB(args[3], IDE_SECTOR_REG);
> - hwif->OUTB(args[4], IDE_LCYL_REG);
> - hwif->OUTB(args[5], IDE_HCYL_REG);
> - sel = (args[6] & ~0x10);
> - if (drive->select.b.unit)
> - sel |= 0x10;

do_rw_taskfile() always sets LBA bit in Device register for LBA
capable disks, so converting HDIO_DRIVE_TASK to use taskfile
transport removes (theoretical?) possibility of sending CHS
commands to LBA capable disks.

This issue is addressed in my patch series.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/