Re: [PATCH v2 6/6] iommu: Delete iommu_dev_has_feature()

2021-01-09 Thread Christoph Hellwig
On Thu, Jan 07, 2021 at 09:18:06AM +0800, Lu Baolu wrote: > The typical use case is > > if (iommu_dev_has_feature(dev, IOMMU_DEV_FEAT_AUX)) { > rc = iommu_dev_enable_feature(dev, IOMMU_DEV_FEAT_AUX); > if (rc < 0) { > dev_warn(dev, "F

Re: [PATCH v2 6/6] iommu: Delete iommu_dev_has_feature()

2021-01-07 Thread John Garry
On 07/01/2021 01:18, Lu Baolu wrote: On 1/6/21 9:35 PM, John Garry wrote: Function iommu_dev_has_feature() has never been referenced in the tree, and there does not appear to be anything coming soon to use it, so delete it. Hi baolu, It will be used by the device driver which want to suppo

Re: [PATCH v2 6/6] iommu: Delete iommu_dev_has_feature()

2021-01-06 Thread Lu Baolu
On 1/6/21 9:35 PM, John Garry wrote: Function iommu_dev_has_feature() has never been referenced in the tree, and there does not appear to be anything coming soon to use it, so delete it. It will be used by the device driver which want to support the aux- domain capability, for example, below se

[PATCH v2 6/6] iommu: Delete iommu_dev_has_feature()

2021-01-06 Thread John Garry
Function iommu_dev_has_feature() has never been referenced in the tree, and there does not appear to be anything coming soon to use it, so delete it. Signed-off-by: John Garry --- drivers/iommu/iommu.c | 11 --- include/linux/iommu.h | 7 --- 2 files changed, 18 deletions(-) diff -