Messages in this thread | | | Date | Fri, 10 Oct 2003 13:15:54 -0700 | From | David Brownell <> | Subject | Re: USB and DMA on Alpha with 2.6.0-test7 |
| |
Ivan Kokshaysky wrote: > > Sigh. The generic dma_* stuff wasn't a well thought-out idea, > and it's too late to change it in 2.6. :-(
The API is more reasonable than the "all is PCI" assumption from that "asm-generic" implementation. I think it should be reasonable to update any architecture's implementation there.
> Right now calling dma_* functions for non-busmaster devices > just *doesn't work*.
See the patch I posted for dma_supported(), which should make that one behave. It's obvious how to generalize that specific call with a platform_dma_supported(). USB won't care about the other dma_* functions ... though it does suck that all non-PCI ohci-hcd code still needs use the "fake PCI" kluges. (Proof that the implementation of those APIs is still only usable with PCI.)
For other functions, it seems you're mostly saying that some drivers are missing tests for non-null dma_mask pointers.
> David, do you mind applying that?
Yes, because that's nowhere near where the bugs are! Also, it's good to get rid of BUG()s ... and better to get rid of them when they're broken like that one is.
- Dave
- 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/
| |