aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r--drivers/ide/ide-disk.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c
index 747dc6023346..d9a4fe27685d 100644
--- a/drivers/ide/ide-disk.c
+++ b/drivers/ide/ide-disk.c
@@ -516,12 +516,11 @@ static int get_smart_data(ide_drive_t *drive, u8 *buf, u8 sub_cmd)
516 tf->lbam = SMART_LCYL_PASS; 516 tf->lbam = SMART_LCYL_PASS;
517 tf->lbah = SMART_HCYL_PASS; 517 tf->lbah = SMART_HCYL_PASS;
518 tf->command = WIN_SMART; 518 tf->command = WIN_SMART;
519 args.tf_flags = IDE_TFLAG_OUT_TF | IDE_TFLAG_OUT_DEVICE; 519 args.tf_flags = IDE_TFLAG_OUT_TF | IDE_TFLAG_OUT_DEVICE;
520 args.command_type = IDE_DRIVE_TASK_IN; 520 args.data_phase = TASKFILE_IN;
521 args.data_phase = TASKFILE_IN; 521 args.handler = task_in_intr;
522 args.handler = &task_in_intr;
523 (void) smart_enable(drive); 522 (void) smart_enable(drive);
524 return ide_raw_taskfile(drive, &args, buf); 523 return ide_raw_taskfile(drive, &args, buf, 1);
525} 524}
526 525
527static int proc_idedisk_read_cache 526static int proc_idedisk_read_cache
@@ -607,9 +606,9 @@ static void idedisk_prepare_flush(struct request_queue *q, struct request *rq)
607 task.tf.command = WIN_FLUSH_CACHE_EXT; 606 task.tf.command = WIN_FLUSH_CACHE_EXT;
608 else 607 else
609 task.tf.command = WIN_FLUSH_CACHE; 608 task.tf.command = WIN_FLUSH_CACHE;
610 task.tf_flags = IDE_TFLAG_OUT_TF | IDE_TFLAG_OUT_DEVICE; 609 task.tf_flags = IDE_TFLAG_OUT_TF | IDE_TFLAG_OUT_DEVICE;
611 task.command_type = IDE_DRIVE_TASK_NO_DATA; 610 task.data_phase = TASKFILE_NO_DATA;
612 task.handler = task_no_data_intr; 611 task.handler = task_no_data_intr;
613 612
614 rq->cmd_type = REQ_TYPE_ATA_TASKFILE; 613 rq->cmd_type = REQ_TYPE_ATA_TASKFILE;
615 rq->cmd_flags |= REQ_SOFTBARRIER; 614 rq->cmd_flags |= REQ_SOFTBARRIER;