xen/arm : smmuv3: Fix to handle multiple StreamIds per device.
authorRahul Singh <rahul.singh@arm.com>
Wed, 17 Feb 2021 10:05:14 +0000 (10:05 +0000)
committerJulien Grall <jgrall@amazon.com>
Fri, 19 Feb 2021 14:55:54 +0000 (14:55 +0000)
commit6794cdd08ea8b3512c53b8f162cb3f88fef54d0d
tree88a05a323250e7cd3ef8d3e211ee0569bfaf740e
parente8185c5f01c68f7d29d23a4a91bc1be1ff2cc1ca
xen/arm : smmuv3: Fix to handle multiple StreamIds per device.

SMMUv3 driver does not handle multiple StreamId if the master device
supports more than one StreamID.

This bug was introduced when the driver was ported from Linux to XEN.
dt_device_set_protected(..) should be called from add_device(..) not
from the dt_xlate(..).

Move dt_device_set_protected(..) from dt_xlate(..) to add_device().

Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/drivers/passthrough/arm/smmu-v3.c