diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:10 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:10 -0500 |
commit | 807e35d695690011faa1ce3ad67dfc23c1e39bdc (patch) | |
tree | 4b9b8328ea27896ea6050a90949d79f6e158d573 /drivers/ide/ide-disk.c | |
parent | 54688aa372cbc83c4361bfb9236f9bfe02168e19 (diff) |
ide: use ide_tf_load() in execute_drive_cmd()
* Add IDE_TFLAG_OUT_DEVICE taskfile flag to indicate the need of writing
the Device register and handle it in ide_tf_load().
Update ide_tf_load() and {do_rw,flagged}_taskfile() users accordingly.
* Use struct ide_taskfile and ide_tf_load() in execute_drive_cmd().
* Make the debugging code dump all taskfile registers for both
REQ_ATA_TYPE_{CMD,TASK} requests and move it to ide_tf_load()
so it also covers REQ_ATA_TYPE_TASKFILE requests.
There should be no functionality changes caused by this patch
(unless DEBUG is defined).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index 6182c23d2020..3e03d0c1a475 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -159,7 +159,7 @@ static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, | |||
159 | 159 | ||
160 | memset(&task, 0, sizeof(task)); | 160 | memset(&task, 0, sizeof(task)); |
161 | task.tf_flags = IDE_TFLAG_NO_SELECT_MASK; /* FIXME? */ | 161 | task.tf_flags = IDE_TFLAG_NO_SELECT_MASK; /* FIXME? */ |
162 | task.tf_flags |= IDE_TFLAG_OUT_TF; | 162 | task.tf_flags |= (IDE_TFLAG_OUT_TF | IDE_TFLAG_OUT_DEVICE); |
163 | 163 | ||
164 | if (drive->select.b.lba) { | 164 | if (drive->select.b.lba) { |
165 | if (lba48) { | 165 | if (lba48) { |