> 16_ide_flagged_taskfile_select_dev_bit_masking.patch
> 
>       In flagged_taskfile(), make off DEV bit before OR'ing it with
>       drive->select.all when writing to IDE_SELECT_REG.


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


Index: linux-ide-export/drivers/ide/ide-taskfile.c
===================================================================
--- linux-ide-export.orig/drivers/ide/ide-taskfile.c    2005-02-02 
10:28:05.093219204 +0900
+++ linux-ide-export/drivers/ide/ide-taskfile.c 2005-02-02 10:28:05.273190003 
+0900
@@ -858,7 +858,8 @@ ide_startstop_t flagged_taskfile (ide_dr
         * select bit (master/slave) in the drive_head register. We must make
         * sure that the desired drive is selected.
         */
-       hwif->OUTB(taskfile->device_head | drive->select.all, IDE_SELECT_REG);
+       hwif->OUTB((taskfile->device_head & ~0x10) | drive->select.all,
+                  IDE_SELECT_REG);
        switch(task->data_phase) {
 
                case TASKFILE_OUT_DMAQ:
-
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