Re: [PATCH 3/7] Use archdata.dma_data in dma_direct_ops and add the offset

2008-01-20 Thread Benjamin Herrenschmidt
On Mon, 2008-01-21 at 16:42 +1100, Michael Ellerman wrote: > Now that all platforms using dma_direct_offset setup the archdata.dma_data > correctly, we can change the dma_direct_ops to retrieve the offset from > the dma_data, rather than directly from the global. > > While we're here, change the

[PATCH 3/7] Use archdata.dma_data in dma_direct_ops and add the offset

2008-01-20 Thread Michael Ellerman
Now that all platforms using dma_direct_offset setup the archdata.dma_data correctly, we can change the dma_direct_ops to retrieve the offset from the dma_data, rather than directly from the global. While we're here, change the way the offset is used - instead of or'ing it into the value, add it.