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

Skip to content
Commit b886fe32 authored by Will Deacon's avatar Will Deacon Committed by Ian Maund
Browse files

iommu/arm-smmu: fix s2cr and smr teardown on device detach from domain



When we attach a device to a domain, we configure the SMRs (if we have
any) to match the Stream IDs for the corresponding SMMU master and
program the s2crs accordingly. However, on detach we tear down the s2crs
assuming stream-indexing (as opposed to stream-matching) and SMRs
assuming they are present.

This patch fixes the device detach code so that it operates as a
converse of the attach code.

Change-Id: I4079e43069909e4b9008263b06186040d556c272
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Git-commit: 43b412bedb782e27a8771b61870dd45a24975266
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent bf008f72
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