[PATCH v4 5/6] iommu: Use EINVAL for incompatible device/domain in ->attach_dev

Tian, Kevin kevin.tian at intel.com
Thu Sep 22 01:19:30 PDT 2022


> From: Nicolin Chen <nicolinc at nvidia.com>
> Sent: Wednesday, September 21, 2022 4:24 PM
> 
> Following the new rules in include/linux/iommu.h kdocs, update all drivers
> ->attach_dev callback functions to return EINVAL in the failure paths that
> are related to domain incompatibility.
> 
> Also, drop adjacent error prints to prevent a kernel log spam.
> 
> Signed-off-by: Nicolin Chen <nicolinc at nvidia.com>

Reviewed-by: Kevin Tian <kevin.tian at intel.com>



More information about the linux-arm-kernel mailing list