* [PATCH] IDE DMA (2.4.x)
@ 2003-05-23 13:44 Geert Uytterhoeven
0 siblings, 0 replies; only message in thread
From: Geert Uytterhoeven @ 2003-05-23 13:44 UTC (permalink / raw)
To: Alan Cox; +Cc: Linux Kernel Development
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-23 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-23 13:44 [PATCH] IDE DMA (2.4.x) Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).