Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c02b299c authored by Olav Haugan's avatar Olav Haugan Committed by Stephen Boyd
Browse files

iommu: msm: Fix attach reference counting



During attach and detach the IOMMU driver calls into Performance
Monitor Unit (PMU) code to synchronize PMU register access. This
ensures PMU register access only occurs when IOMMU is powered ON.
However, the reference counting might get out of sync if a client
attaches to the same context bank more than once. On 2nd and
subsequent attach the reference count won't be incremented but
it will be decremented on each detach.

Change attach code to ensure every attach is accounted for.

Change-Id: I8c39ed77ca4980920fbc93c3a854cc2b11056b30
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent 18004887
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment