mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ide: always use ->OUTBSYNC method for executing commands
Always use ->OUTBSYNC method for executing commands so the posting is done if needed (this affects only pmac and scc_pata host drivers at the moment). Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
24cc434acc
commit
32b3fe4fff
6 changed files with 14 additions and 9 deletions
|
|
@ -256,7 +256,8 @@ idescsi_atapi_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err)
|
|||
|
||||
if (ide_read_status(drive) & (BUSY_STAT | DRQ_STAT))
|
||||
/* force an abort */
|
||||
hwif->OUTB(WIN_IDLEIMMEDIATE, hwif->io_ports.command_addr);
|
||||
hwif->OUTBSYNC(drive, WIN_IDLEIMMEDIATE,
|
||||
hwif->io_ports.command_addr);
|
||||
|
||||
rq->errors++;
|
||||
|
||||
|
|
@ -573,7 +574,8 @@ static ide_startstop_t idescsi_issue_pc(ide_drive_t *drive,
|
|||
return ide_started;
|
||||
} else {
|
||||
/* Issue the packet command */
|
||||
hwif->OUTB(WIN_PACKETCMD, hwif->io_ports.command_addr);
|
||||
hwif->OUTBSYNC(drive, WIN_PACKETCMD,
|
||||
hwif->io_ports.command_addr);
|
||||
return idescsi_transfer_pc(drive);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue