> From: Deepak Saxena <[EMAIL PROTECTED]>
> Date: Tue, 19 Aug 2003 22:17:14 -0700
> The ARM PCI DMA API implementation has an ugly hack in it to deal
> with the fact that ohci-sa1111.c uses it even though it is not a PCI
> device. This patch cleans up ohci-sa1111.c to use the generic
> DMA API so we can kill the hack...I think/hope.
Where is the "ugly hack" removal?
> - if (hcd->pdev) {
> - ohci->hcca = pci_alloc_consistent (hcd->pdev,
> - sizeof *ohci->hcca, &ohci->hcca_dma);
> + if (hcd->controller) {
> +
> + ohci->hcca = dma_alloc_coherent (hcd->controller,
> + sizeof *ohci->hcca, &ohci->hcca_dma, GFP_DMA);
> if (!ohci->hcca)
> return -ENOMEM;
What the heck is this GFP_DMA supposed to mean? It's ridiculous.
Is it an ARM-specific kludge or what?
-- Pete
-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel