Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105003
b: refs/heads/master
c: 4e65837
h: refs/heads/master
i:
  105001: ab24ec2
  104999: 0897715
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 23, 2008
1 parent 5d3cc45 commit 4cfaf64
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59be2c80f0c1080634006135aa9130f1736fbfba
refs/heads/master: 4e65837b293f3ee6399006e94120d61430f72f26
12 changes: 9 additions & 3 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,15 @@ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd)
/* set features register for atapi
* identify command to be sure of reply
*/
if ((cmd == WIN_PIDENTIFY))
/* disable dma & overlap */
hwif->OUTB(0, io_ports->feature_addr);
if (cmd == WIN_PIDENTIFY) {
ide_task_t task;

memset(&task, 0, sizeof(task));
/* disable DMA & overlap */
task.tf_flags = IDE_TFLAG_OUT_FEATURE;

drive->hwif->tf_load(drive, &task);
}

/* ask drive for ID */
hwif->exec_command(hwif, cmd);
Expand Down

0 comments on commit 4cfaf64

Please sign in to comment.