]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/tegra: gart: Provide default ->map_sg() callback
authorThierry Reding <treding@nvidia.com>
Fri, 23 Jan 2015 15:37:52 +0000 (16:37 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 26 Jan 2015 12:41:07 +0000 (13:41 +0100)
commit67178c5b69bba1da6ec80b18cf02d6bd47d0ebdf
treedde06efb492f918065bd298796a2abb73bfcf404
parent403df630923ebaa19c9f252d50aba94b6d2fcced
iommu/tegra: gart: Provide default ->map_sg() callback

Commit 7a05e27f3d92 ("iommu: Add iommu_map_sg() function") adds a new
->map_sg() callback and provides a default implementation that drivers
can use until they implement a hardware-specific variant. Unfortunately
the Tegra GART driver was not updated as part of that commit, so that
iommu_map_sg() calls on a domain provided by the GART cause an oops.

Fixes: 7a05e27f3d92 ("iommu: Add iommu_map_sg() function")
Cc: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/tegra-gart.c