]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/ide/ide-taskfile.c
ide: move data register access out of tf_{read|load}() methods (take 2)
[karo-tx-linux.git] / drivers / ide / ide-taskfile.c
index 47f13cd11031a36dfec07a84e05836437d475319..243421ce40d02ccee63b211f202017782e4d8262 100644 (file)
@@ -82,6 +82,12 @@ ide_startstop_t do_rw_taskfile(ide_drive_t *drive, struct ide_cmd *orig_cmd)
                ide_tf_dump(drive->name, tf);
                tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS);
                SELECT_MASK(drive, 0);
+
+               if (cmd->ftf_flags & IDE_FTFLAG_OUT_DATA) {
+                       u8 data[2] = { tf->data, tf->hob_data };
+
+                       tp_ops->output_data(drive, cmd, data, 2);
+               }
                tp_ops->tf_load(drive, cmd);
        }