block = kmalloc(EXT_FW_BLOCK_SIZE, GFP_KERNEL|GFP_DMA);
	if(block == NULL) return -ENOMEM;

Wrong. Use GFP_KERNEL only.

Alright. I just wanted to be sure it's DMA.
And why is that?  Remember that not all HCDs do DMA,
and even those that do aren't usually going to need
to use the "DMA zone".  (On x86 that means being
accessible to ISA cards ... generally irrelevant for
USB.)

If you're trying to avoid a bounce buffer, you need to
use usb_buffer_alloc(); see Documentation/usb/dma.txt
(on 2.5 kernels).





-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to