From: FUJITA Tomonori Date: Wed, 15 Oct 2008 07:08:28 +0000 (+0900) Subject: intel-iommu: use coherent_dma_mask in alloc_coherent X-Git-Tag: v2.6.28-rc1~39^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb9e6d65078da2f38cfe1067cfd31a896ca867c0;p=pandora-kernel.git intel-iommu: use coherent_dma_mask in alloc_coherent This patch fixes intel-iommu to use dev->coherent_dma_mask in alloc_coherent. Currently, intel-iommu uses dev->dma_mask in alloc_coherent but alloc_coherent is supposed to use coherent_dma_mask. It could break drivers that uses smaller coherent_dma_mask than dma_mask (though the current code works for the majority that use the same mask for coherent_dma_mask and dma_mask). [dwmw2: dma_mask can be bigger than 'unsigned long'] Signed-off-by: FUJITA Tomonori Reviewed-by: Grant Grundler Signed-off-by: David Woodhouse --- Reading git-diff-tree failed