[PATCH] ide-taskfile.c fixups/cleanups part #2 [2/9]

From: Bartlomiej Zolnierkiewicz
Date: Wed Jun 30 2004 - 10:36:55 EST



[PATCH] ide: PIO-out ->prehandler() fixes (CONFIG_IDE_TASKFILE_IO=y)

Setup handler and output first data block directly from ->prehandler()
instead of calling ->handler(). The only change in functionality is that
we no longer check DRIVE_READY status bits (there is no need to do it).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxxxxxxx>

linux-2.6.7-bk11-bzolnier/drivers/ide/ide-taskfile.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)

diff -puN drivers/ide/ide-taskfile.c~ide_tf_pio_out_prehandler drivers/ide/ide-taskfile.c
--- linux-2.6.7-bk11/drivers/ide/ide-taskfile.c~ide_tf_pio_out_prehandler 2004-06-28 21:21:23.952054632 +0200
+++ linux-2.6.7-bk11-bzolnier/drivers/ide/ide-taskfile.c 2004-06-28 21:21:23.957053872 +0200
@@ -698,7 +698,10 @@ ide_startstop_t pre_task_out_intr (ide_d
if (!drive->unmask)
local_irq_disable();

- return task_out_intr(drive);
+ ide_set_handler(drive, &task_out_intr, WAIT_WORSTCASE, NULL);
+ task_sectors(drive, rq, 1, IDE_PIO_OUT);
+
+ return ide_started;
}
EXPORT_SYMBOL(pre_task_out_intr);

@@ -762,7 +765,10 @@ ide_startstop_t pre_task_mulout_intr (id
if (!drive->unmask)
local_irq_disable();

- return task_mulout_intr(drive);
+ ide_set_handler(drive, &task_mulout_intr, WAIT_WORSTCASE, NULL);
+ task_multi_sectors(drive, rq, IDE_PIO_OUT);
+
+ return ide_started;
}
EXPORT_SYMBOL(pre_task_mulout_intr);


_

-
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/