forked from luck/tmp_suning_uos_patched
ide: use ->tf_load in actual_try_to_identify()
Convert actual_try_to_identify() to use ->tf_load instead of ->OUTB. There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
59be2c80f0
commit
4e65837b29
@ -290,9 +290,15 @@ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd)
|
|||||||
/* set features register for atapi
|
/* set features register for atapi
|
||||||
* identify command to be sure of reply
|
* identify command to be sure of reply
|
||||||
*/
|
*/
|
||||||
if ((cmd == WIN_PIDENTIFY))
|
if (cmd == WIN_PIDENTIFY) {
|
||||||
/* disable dma & overlap */
|
ide_task_t task;
|
||||||
hwif->OUTB(0, io_ports->feature_addr);
|
|
||||||
|
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 */
|
/* ask drive for ID */
|
||||||
hwif->exec_command(hwif, cmd);
|
hwif->exec_command(hwif, cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user