OSDN Git Service

iommu/arm-smmu-v3: Store SteamIDs in master
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Wed, 17 Apr 2019 18:24:44 +0000 (19:24 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 23 Apr 2019 11:23:11 +0000 (12:23 +0100)
commitbcecaee434733d98a9e7a45834f7439b64142eb3
treec9703d0786f9a173c7f4824bedddfb0bf16744dd
parentb54f4260c7df878c231e7b3a3687636d74d83c8f
iommu/arm-smmu-v3: Store SteamIDs in master

Simplify the attach/detach code a bit by keeping a pointer to the stream
IDs in the master structure. Although not completely obvious here, it does
make the subsequent support for ATS, PRI and PASID a bit simpler.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c