02_ide_taskfile_init_drive_cmd.patch

        ide_init_drive_cmd() now initializes rq->flags to
        REQ_DRIVE_TASKFILE.


Signed-off-by: Tejun Heo <[EMAIL PROTECTED]>


Index: linux-ide-series2-export/drivers/ide/ide-io.c
===================================================================
--- linux-ide-series2-export.orig/drivers/ide/ide-io.c  2005-02-05 
19:26:51.303372581 +0900
+++ linux-ide-series2-export/drivers/ide/ide-io.c       2005-02-05 
19:27:08.308610336 +0900
@@ -64,7 +64,7 @@ static void ide_fill_flush_cmd(ide_drive
         */
        memset(buf, 0, sizeof(rq->cmd));
 
-       rq->flags |= REQ_DRIVE_TASK | REQ_STARTED;
+       rq->flags = REQ_DRIVE_TASK | REQ_STARTED;
        rq->buffer = buf;
        rq->buffer[0] = WIN_FLUSH_CACHE;
 
@@ -1549,7 +1549,7 @@ irqreturn_t ide_intr (int irq, void *dev
 void ide_init_drive_cmd (struct request *rq)
 {
        memset(rq, 0, sizeof(*rq));
-       rq->flags = REQ_DRIVE_CMD;
+       rq->flags = REQ_DRIVE_TASKFILE;
        rq->ref_count = 1;
 }
 
Index: linux-ide-series2-export/drivers/ide/ide-taskfile.c
===================================================================
--- linux-ide-series2-export.orig/drivers/ide/ide-taskfile.c    2005-02-05 
19:26:51.303372581 +0900
+++ linux-ide-series2-export/drivers/ide/ide-taskfile.c 2005-02-05 
19:27:08.308610336 +0900
@@ -670,6 +670,7 @@ int ide_wait_cmd (ide_drive_t *drive, u8
                buf = buffer;
        memset(buf, 0, 4 + SECTOR_WORDS * 4 * sectors);
        ide_init_drive_cmd(&rq);
+       rq.flags = REQ_DRIVE_CMD;
        rq.buffer = buf;
        *buf++ = cmd;
        *buf++ = nsect;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to