diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-11-11 17:59:21 +0000 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-11-15 12:25:33 +0100 |
commit | 13f59a78c6d69a9bf4c8989dd5f3396f54a2fe41 (patch) | |
tree | 6faca25c8154692b8d0b564522cb0834e3c7e8ad /drivers/media | |
parent | 60c4e804ff7f8ab5f9909bec36065f7e598eabcf (diff) | |
download | linux-stable-13f59a78c6d69a9bf4c8989dd5f3396f54a2fe41.tar.gz linux-stable-13f59a78c6d69a9bf4c8989dd5f3396f54a2fe41.tar.bz2 linux-stable-13f59a78c6d69a9bf4c8989dd5f3396f54a2fe41.zip |
iommu: Allow taking a reference on a group directly
iommu_group_get_for_dev() expects that the IOMMU driver's device_group
callback return a group with a reference held for the given device.
Whilst allocating a new group is fine, and pci_device_group() correctly
handles reusing an existing group, there is no general means for IOMMU
drivers doing their own group lookup to take additional references on an
existing group pointer without having to also store device pointers or
resort to elaborate trickery.
Add an IOMMU-driver-specific function to fill the hole.
Acked-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions