aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/ide-taskfile.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c
index b3c32c5fef35..62ebefd6394a 100644
--- a/drivers/ide/ide-taskfile.c
+++ b/drivers/ide/ide-taskfile.c
@@ -773,19 +773,13 @@ ide_startstop_t flagged_taskfile (ide_drive_t *drive, ide_task_t *task)
773 } 773 }
774 774
775 /* 775 /*
776 * (ks) Check taskfile in/out flags. 776 * (ks) Check taskfile in flags.
777 * If set, then execute as it is defined. 777 * If set, then execute as it is defined.
778 * If not set, then define default settings. 778 * If not set, then define default settings.
779 * The default values are: 779 * The default values are:
780 * write and read all taskfile registers (except data) 780 * read all taskfile registers (except data)
781 * write and read the hob registers (sector,nsector,lcyl,hcyl) 781 * read the hob registers (sector, nsector, lcyl, hcyl)
782 */ 782 */
783 if (task->tf_out_flags.all == 0) {
784 task->tf_out_flags.all = IDE_TASKFILE_STD_OUT_FLAGS;
785 if (drive->addressing == 1)
786 task->tf_out_flags.all |= (IDE_HOB_STD_OUT_FLAGS << 8);
787 }
788
789 if (task->tf_in_flags.all == 0) { 783 if (task->tf_in_flags.all == 0) {
790 task->tf_in_flags.all = IDE_TASKFILE_STD_IN_FLAGS; 784 task->tf_in_flags.all = IDE_TASKFILE_STD_IN_FLAGS;
791 if (drive->addressing == 1) 785 if (drive->addressing == 1)