diff options
-rw-r--r-- | drivers/ide/ide-probe.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 475bd7263184..970464317bd7 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -290,9 +290,15 @@ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd) | |||
290 | /* set features register for atapi | 290 | /* set features register for atapi |
291 | * identify command to be sure of reply | 291 | * identify command to be sure of reply |
292 | */ | 292 | */ |
293 | if ((cmd == WIN_PIDENTIFY)) | 293 | if (cmd == WIN_PIDENTIFY) { |
294 | /* disable dma & overlap */ | 294 | ide_task_t task; |
295 | hwif->OUTB(0, io_ports->feature_addr); | 295 | |
296 | memset(&task, 0, sizeof(task)); | ||
297 | /* disable DMA & overlap */ | ||
298 | task.tf_flags = IDE_TFLAG_OUT_FEATURE; | ||
299 | |||
300 | drive->hwif->tf_load(drive, &task); | ||
301 | } | ||
296 | 302 | ||
297 | /* ask drive for ID */ | 303 | /* ask drive for ID */ |
298 | hwif->exec_command(hwif, cmd); | 304 | hwif->exec_command(hwif, cmd); |