[PATCH] IDE DMA (2.4.x)

Geert Uytterhoeven (geert@linux-m68k.org)
Fri, 23 May 2003 15:44:57 +0200 (MEST)


Hi Alan,

IDE DMA suggestions:
- Add DMA activity test to ide_raw_build_sglist() (cfr. ide_build_sglist()).
Does this make sense? Or should the test in ide_build_sglist() be removed?
- Fix linuxdoc comments
- Fix typo (probably introduced by the spelling police, thinking that
`retune' was a typo ;-)

--- linux-2.4.x/drivers/ide/ide-dma.c.orig Mon May 5 16:26:10 2003
+++ linux-2.4.x/drivers/ide/ide-dma.c Thu May 15 18:19:11 2003
@@ -320,6 +320,9 @@
u8 *virt_addr = rq->buffer;
int sector_count = rq->nr_sectors;

+ if (hwif->sg_dma_active)
+ BUG();
+
if (args->command_type == IDE_DRIVE_TASK_RAW_WRITE)
hwif->sg_dma_direction = PCI_DMA_TODEVICE;
else
@@ -581,7 +584,7 @@
EXPORT_SYMBOL(__ide_dma_host_off);

/**
- * __ide_dma_host_off_quietly - Generic DMA kill
+ * __ide_dma_off_quietly - Generic DMA kill
* @drive: drive to control
*
* Turn off the current DMA on this IDE controller.
@@ -597,7 +600,7 @@
EXPORT_SYMBOL(__ide_dma_off_quietly);

/**
- * __ide_dma_host_off - Generic DMA kill
+ * __ide_dma_off - Generic DMA kill
* @drive: drive to control
*
* Turn off the current DMA on this IDE controller. Inform the
@@ -945,7 +948,7 @@
* __ide_dma_retune - default retune handler
* @drive: drive to retune
*
- * Default behaviour when we decide to return the IDE DMA setup.
+ * Default behaviour when we decide to retune the IDE DMA setup.
* The default behaviour is "we don't"
*/

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

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