]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Ignore -ENODEV errors from add_device call-back
authorJoerg Roedel <jroedel@suse.de>
Mon, 29 Jun 2015 08:16:08 +0000 (10:16 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 29 Jun 2015 19:57:19 +0000 (21:57 +0200)
commitac97e4f2f8f5a5a0b16c7112fffd10adbafc2a3d
treed5e64dc3e7be3c9752675717fba5bc7c2a35dda8
parent51cb34b580c9c73c03b46cdfeefc93afb5486099
iommu: Ignore -ENODEV errors from add_device call-back

The -ENODEV error just means that the device is not
translated by an IOMMU. We shouldn't bail out of iommu
driver initialization when that happens, as this is a common
scenario on ARM.

Not returning -ENODEV in the drivers would be a bad idea, as
the IOMMU core would have no indication whether a device is
translated or not. This indication is not used at the
moment, but will probably be in the future.

Fixes: 2779046 ("iommu: Propagate error in add_iommu_group")
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Eric Auger <eric.auger@linaro.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c