]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Fix cell IOMMU code to cope with empty dma-ranges and non-PCI devices
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 14 Mar 2008 05:47:39 +0000 (16:47 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Mar 2008 23:15:10 +0000 (10:15 +1100)
commit3a4295d101d9654ca909b64c786f9da6ca1bf37a
tree25bec42d4e6d98f8b5dd3fec0b431ec51958afbb
parenta72a6f53ddb95723960bb64c011457e9739941d7
[POWERPC] Fix cell IOMMU code to cope with empty dma-ranges and non-PCI devices

The cell IOMMU code to parse the dma-ranges properties, used for the fixed
mapping, was broken in two ways for some devices.

Firstly it didn't cope with empty dma-ranges properties. An empty property
implies no translation so can be safely skipped.

The code also wrongly assumed it would be looking at PCI devices, and hard
coded the number of address and size cells.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/iommu.c