Skip to contentSkip to conversation

iommu/core: Remove comment reference to iommu_dev_has_feature

PATCH In review Akeem G Abodunrin 2 participants 2 messages Feb 7, 2022 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 iommu/core: Remove comment reference to iommu_dev_has_feature

iommu_dev_has_feature() api has been removed by the commit 262948f8ba573 ("iommu: Delete iommu_dev_has_feature()") - So this patch removes comment about the api to avoid any confusion.

---
 include/linux/iommu.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/iommu.h +1 -2
index de0c57a567c8..bea054f2bd4d 100644
@@ -153,8 +153,7 @@ struct iommu_resv_region {
  *			 supported, this feature must be enabled before and
  *			 disabled after %IOMMU_DEV_FEAT_SVA.
  *
- * Device drivers query whether a feature is supported using
- * iommu_dev_has_feature(), and enable it using iommu_dev_enable_feature().
+ * Device drivers enable the feature via iommu_dev_enable_feature().
  */
 enum iommu_dev_features {
 	IOMMU_DEV_FEAT_AUX,
Signature · 1 line
2.21.3
Reviewed-by on v2 1/1
#1 lore raw
Quoted 7 lines · Akeem G Abodunrin

iommu_dev_has_feature() api has been removed by the commit 262948f8ba573 ("iommu: Delete iommu_dev_has_feature()") - So this patch removes comment about the api to avoid any confusion.

BTW, It looks like we can get rid of iommu_ops.dev_has_feat also.

It does not seem to be called, while arm-smmu-v3 driver does provide a callback.

Quoted 9 lines
---
  include/linux/iommu.h | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/iommu.h +0 -0
index de0c57a567c8..bea054f2bd4d 100644

include/linux/iommu.h struct iommu_resv_region { · line 159

Quoted 9 lines
include/linux/iommu.h +1 -2
@@ -153,8 +153,7 @@ struct iommu_resv_region {
   *			 supported, this feature must be enabled before and
   *			 disabled after %IOMMU_DEV_FEAT_SVA.
   *
- * Device drivers query whether a feature is supported using
- * iommu_dev_has_feature(), and enable it using iommu_dev_enable_feature().
+ * Device drivers enable the feature via iommu_dev_enable_feature().
   */
  enum iommu_dev_features {
  	IOMMU_DEV_FEAT_AUX,

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu