ide-{floppy,tape,scsi}: fix register loading order when issuing packet command
Load IDE_BCOUNTL_REG before IDE_BCOUNTH_REG when issuing packet command. It shouldn't affect anything (just a usual paranoia to separate changes which change the way in which hardware is accessed from code cleanups). Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Esse commit está contido em:
@@ -1071,8 +1071,8 @@ static ide_startstop_t idefloppy_issue_pc (ide_drive_t *drive, idefloppy_pc_t *p
|
||||
HWIF(drive)->OUTB(drive->ctl, IDE_CONTROL_REG);
|
||||
/* Use PIO/DMA */
|
||||
hwif->OUTB(dma, IDE_FEATURE_REG);
|
||||
hwif->OUTB((bcount >> 8) & 0xff, IDE_BCOUNTH_REG);
|
||||
hwif->OUTB(bcount & 0xff, IDE_BCOUNTL_REG);
|
||||
hwif->OUTB((bcount >> 8) & 0xff, IDE_BCOUNTH_REG);
|
||||
HWIF(drive)->OUTB(drive->select.all, IDE_SELECT_REG);
|
||||
|
||||
if (dma) { /* Begin DMA, if necessary */
|
||||
|
Referência em uma nova issue
Block a user