Re: ISA DMA controller hangs

From: Alan Cox
Date: Thu Jun 30 2005 - 06:33:14 EST


On Iau, 2005-06-30 at 09:00, Pierre Ossman wrote:
> + for (i = 0;i < 8;i++) {
> + set_dma_addr(i, 0x000000);
> + /* DMA count is a bit wierd so this is not 0 */
> + set_dma_count(i, 1);

It is spelt "weird"

Looks basically OK although it would be good to document the situation
for a bus mastering DMA controller. Does the device have to reconfigure
the DMA on a resume or is that something the restore code for the device
should handle ?

My own feeling is tha we should dump that on the device (safer) and also
expect the device to prevent suspends during an active DMA transfer (eg
floppy)

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/