File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
drivers/iommu/arm/arm-smmu-v3 Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2924,19 +2924,16 @@ static struct iommu_device *arm_smmu_probe_device(struct device *dev)
2924
2924
static void arm_smmu_release_device (struct device * dev )
2925
2925
{
2926
2926
struct arm_smmu_master * master = dev_iommu_priv_get (dev );
2927
- struct arm_smmu_ste target ;
2928
2927
2929
2928
if (WARN_ON (arm_smmu_master_sva_enabled (master )))
2930
2929
iopf_queue_remove_device (master -> smmu -> evtq .iopf , dev );
2931
2930
2932
2931
/* Put the STE back to what arm_smmu_init_strtab() sets */
2933
2932
if (disable_bypass && !dev -> iommu -> require_direct )
2934
- arm_smmu_make_abort_ste ( & target );
2933
+ arm_smmu_attach_dev_blocked ( & arm_smmu_blocked_domain , dev );
2935
2934
else
2936
- arm_smmu_make_bypass_ste (& target );
2937
- arm_smmu_install_ste_for_dev (master , & target );
2935
+ arm_smmu_attach_dev_identity (& arm_smmu_identity_domain , dev );
2938
2936
2939
- arm_smmu_detach_dev (master );
2940
2937
arm_smmu_disable_pasid (master );
2941
2938
arm_smmu_remove_master (master );
2942
2939
if (master -> cd_table .cdtab )
You can’t perform that action at this time.
0 commit comments