mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
drm/msm: Delete resume_translation()
Unused since the previous commit. Signed-off-by: Connor Abbott <cwabbott0@gmail.com> Patchwork: https://patchwork.freedesktop.org/patch/654890/ Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
This commit is contained in:
@@ -71,10 +71,6 @@ static int a2xx_gpummu_unmap(struct msm_mmu *mmu, uint64_t iova, size_t len)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void a2xx_gpummu_resume_translation(struct msm_mmu *mmu)
|
||||
{
|
||||
}
|
||||
|
||||
static void a2xx_gpummu_destroy(struct msm_mmu *mmu)
|
||||
{
|
||||
struct a2xx_gpummu *gpummu = to_a2xx_gpummu(mmu);
|
||||
@@ -90,7 +86,6 @@ static const struct msm_mmu_funcs funcs = {
|
||||
.map = a2xx_gpummu_map,
|
||||
.unmap = a2xx_gpummu_unmap,
|
||||
.destroy = a2xx_gpummu_destroy,
|
||||
.resume_translation = a2xx_gpummu_resume_translation,
|
||||
};
|
||||
|
||||
struct msm_mmu *a2xx_gpummu_new(struct device *dev, struct msm_gpu *gpu)
|
||||
|
||||
@@ -345,7 +345,6 @@ static int msm_gpu_fault_handler(struct iommu_domain *domain, struct device *dev
|
||||
unsigned long iova, int flags, void *arg)
|
||||
{
|
||||
struct msm_iommu *iommu = arg;
|
||||
struct msm_mmu *mmu = &iommu->base;
|
||||
struct adreno_smmu_priv *adreno_smmu = dev_get_drvdata(iommu->base.dev);
|
||||
struct adreno_smmu_fault_info info, *ptr = NULL;
|
||||
|
||||
@@ -359,9 +358,6 @@ static int msm_gpu_fault_handler(struct iommu_domain *domain, struct device *dev
|
||||
|
||||
pr_warn_ratelimited("*** fault: iova=%16lx, flags=%d\n", iova, flags);
|
||||
|
||||
if (mmu->funcs->resume_translation)
|
||||
mmu->funcs->resume_translation(mmu);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -376,14 +372,6 @@ static int msm_disp_fault_handler(struct iommu_domain *domain, struct device *de
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
static void msm_iommu_resume_translation(struct msm_mmu *mmu)
|
||||
{
|
||||
struct adreno_smmu_priv *adreno_smmu = dev_get_drvdata(mmu->dev);
|
||||
|
||||
if (adreno_smmu->resume_translation)
|
||||
adreno_smmu->resume_translation(adreno_smmu->cookie, true);
|
||||
}
|
||||
|
||||
static void msm_iommu_detach(struct msm_mmu *mmu)
|
||||
{
|
||||
struct msm_iommu *iommu = to_msm_iommu(mmu);
|
||||
@@ -431,7 +419,6 @@ static const struct msm_mmu_funcs funcs = {
|
||||
.map = msm_iommu_map,
|
||||
.unmap = msm_iommu_unmap,
|
||||
.destroy = msm_iommu_destroy,
|
||||
.resume_translation = msm_iommu_resume_translation,
|
||||
};
|
||||
|
||||
struct msm_mmu *msm_iommu_new(struct device *dev, unsigned long quirks)
|
||||
|
||||
@@ -15,7 +15,6 @@ struct msm_mmu_funcs {
|
||||
size_t len, int prot);
|
||||
int (*unmap)(struct msm_mmu *mmu, uint64_t iova, size_t len);
|
||||
void (*destroy)(struct msm_mmu *mmu);
|
||||
void (*resume_translation)(struct msm_mmu *mmu);
|
||||
};
|
||||
|
||||
enum msm_mmu_type {
|
||||
|
||||
Reference in New Issue
Block a user