]> err.no Git - linux-2.6/commit
[POWERPC] Fix potential cell IOMMU bug when switching back to default DMA ops
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 8 Feb 2008 05:37:04 +0000 (16:37 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 8 Feb 2008 08:52:40 +0000 (19:52 +1100)
commit4a8df1507eaeefc9739e3762db606caa08edba98
treee46f928e8b93809a882a5d7bfc12fd890ff1ffa7
parent0e0b47abb71a2c4aed5895c01f41827dbd8a981c
[POWERPC] Fix potential cell IOMMU bug when switching back to default DMA ops

If we get a 64-bit dma mask we switch to the fixed ops and call
cell_dma_dev_setup().  If the driver then switches back to a 32-bit dma
mask for any reason we don't call cell_dma_dev_setup() again, which
has the potential to leave bogus data in dev->archdata.dma_data.

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