@@ -265,7 +268,7 @@ static dma_addr_t dma_map_area(struct device
*dev, dma_addr_t phys_mem,
static dma_addr_t
gart_map_simple(struct device *dev, phys_addr_t paddr, size_t size,
int dir)
{
- dma_addr_t map = dma_map_area(dev, paddr, size, dir);
+ dma_addr_t map = dma_map_area(dev, paddr, size, dir, size - 1);
Maybe I'm missing something -- what implies size has to be a power of
two?
P.
Ixnay that last comment -- I geddit (duh.).
The implication of "size-1" is that size is always a power of two.
Jesse -- I'll have to post a follow-up patch to fix this.
P.
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html