Re: [PATCH v2] iommu: add support for drivers that manage iommu explicitly

From: Joerg Roedel
Date: Mon Jul 22 2019 - 10:28:39 EST


On Wed, Jul 10, 2019 at 11:28:30AM -0700, Rob Clark wrote:
> --- a/include/linux/device.h
> +++ b/include/linux/device.h
> @@ -282,7 +282,8 @@ struct device_driver {
> struct module *owner;
> const char *mod_name; /* used for built-in modules */
>
> - bool suppress_bind_attrs; /* disables bind/unbind via sysfs */
> + bool suppress_bind_attrs:1; /* disables bind/unbind via sysfs */
> + bool driver_manages_iommu:1; /* driver manages IOMMU explicitly */

Who will set this bit?


Regards,

Joerg