projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c9b88
)
iommu/tegra: gart: Fix gart_iommu_unmap()
author
Dmitry Osipenko
<
[email protected]
>
Mon, 9 Apr 2018 20:07:20 +0000
(23:07 +0300)
committer
Joerg Roedel
<
[email protected]
>
Thu, 3 May 2018 14:30:28 +0000
(16:30 +0200)
It must return the number of unmapped bytes on success, returning 0 means
that unmapping failed and in result only one page is unmapped.
Signed-off-by: Dmitry Osipenko <
[email protected]
>
Reviewed-by: Thierry Reding <
[email protected]
>
Acked-by: Thierry Reding <
[email protected]
>
Signed-off-by: Joerg Roedel <
[email protected]
>
drivers/iommu/tegra-gart.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/tegra-gart.c
b/drivers/iommu/tegra-gart.c
index 4c0abdcd1ad2fea71f2e6f9b5b197a88ee56f265..89ec24c6952c5aa078d7aa680a6808de09134d50 100644
(file)
--- a/
drivers/iommu/tegra-gart.c
+++ b/
drivers/iommu/tegra-gart.c
@@
-313,7
+313,7
@@
static size_t gart_iommu_unmap(struct iommu_domain *domain, unsigned long iova,
gart_set_pte(gart, iova, 0);
FLUSH_GART_REGS(gart);
spin_unlock_irqrestore(&gart->pte_lock, flags);
- return
0
;
+ return
bytes
;
}
static phys_addr_t gart_iommu_iova_to_phys(struct iommu_domain *domain,