Commit 14a85180 authored by Paul Mackerras's avatar Paul Mackerras

PPC32: More fixes for PCI on non-cache-coherent platforms.

parent 0f22e3e9
......@@ -102,6 +102,9 @@ static inline dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr,
{
if (direction == PCI_DMA_NONE)
BUG();
consistent_sync(ptr, size, direction);
return virt_to_bus(ptr);
}
......@@ -203,7 +206,8 @@ static inline void pci_dma_sync_single(struct pci_dev *hwdev,
{
if (direction == PCI_DMA_NONE)
BUG();
/* nothing to do */
consistent_sync(bus_to_virt(dma_handle), size, direction);
}
/* Make physical memory consistent for a set of streaming
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment