Skip to content

Commit

Permalink
[ARM] Ensure sl82c105 IDE interfaces are serialized when using DMA
Browse files Browse the repository at this point in the history
We don't want to reset the DMA state machine while the other
channel is in use.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 12, 2005
1 parent da2660d commit a151021
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/ide/pci/sl82c105.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ static void __devinit init_hwif_sl82c105(ide_hwif_t *hwif)
hwif->autodma = 1;
hwif->drives[0].autodma = hwif->autodma;
hwif->drives[1].autodma = hwif->autodma;

if (hwif->mate)
hwif->serialized = hwif->mate->serialized = 1;
#endif /* CONFIG_BLK_DEV_IDEDMA */
}
hwif->OUTB(dma_state, hwif->dma_base + 2);
Expand Down

0 comments on commit a151021

Please sign in to comment.