]> git.baikalelectronics.ru Git - kernel.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)
commit8f3d6e4b64d843e2974c03d93ec0730cfc6f0f56
tree25bec42d4e6d98f8b5dd3fec0b431ec51958afbb
parent76c1d3a63b9efc96ecaff3886f362f40ed1e3236
[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