]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Hook up '->unmap_pages' driver callback
authorWill Deacon <will@kernel.org>
Wed, 16 Jun 2021 13:38:48 +0000 (06:38 -0700)
committerJoerg Roedel <jroedel@suse.de>
Mon, 26 Jul 2021 10:37:07 +0000 (12:37 +0200)
commit1fb69505cb97b256e0b5d62b98fca45abcf23a2e
tree87acda464b62906c97ccfcd3add3e97740eabbe0
parent3d9d15b77baba9eee3c79456a766852e7156d316
iommu: Hook up '->unmap_pages' driver callback

Extend iommu_pgsize() to populate an optional 'count' parameter so that
we can direct unmapping operation to the ->unmap_pages callback if it
has been provided by the driver.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/1623850736-389584-8-git-send-email-quic_c_gdjako@quicinc.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c