On Wed, Nov 11, 2020 at 02:21:27PM -0800, Nicolin Chen wrote: > In tegra_smmu_(de)attach_dev() functions, we poll DTB for each > client's iommus property to get swgroup ID in order to prepare > "as" and enable smmu. Actually tegra_smmu_configure() prepared > an fwspec for each client, and added to the fwspec all swgroup > IDs of client DT node in DTB. > > So this patch uses fwspec in tegra_smmu_(de)attach_dev() so as > to replace the redundant DT polling code. > > Reviewed-by: Dmitry Osipenko > Tested-by: Dmitry Osipenko > Signed-off-by: Nicolin Chen > --- > drivers/iommu/tegra-smmu.c | 56 ++++++++++++++++---------------------- > 1 file changed, 23 insertions(+), 33 deletions(-) Acked-by: Thierry Reding