linux/drivers/of
Sricharan R a37b19a384 iommu/of: Ignore all errors except EPROBE_DEFER
While deferring the probe of IOMMU masters, xlate and
add_device callbacks called from of_iommu_configure
can pass back error values like -ENODEV, which means
the IOMMU cannot be connected with that master for real
reasons. Before the IOMMU probe deferral, all such errors
were ignored. Now all those errors are propagated back,
killing the master's probe for such errors. Instead ignore
all the errors except EPROBE_DEFER, which is the only one
of concern and let the master work without IOMMU, thus
restoring the old behavior. Also make explicit that
of_dma_configure handles only -EPROBE_DEFER from
of_iommu_configure.

Fixes: 7b07cbefb6 ("iommu: of: Handle IOMMU lookup failure with deferred probing or error")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Magnus Damn <magnus.damn@gmail.com>
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2017-05-30 11:31:32 +02:00
..
unittest-data of: Add unit tests for applying overlays 2017-04-27 17:26:06 -05:00
address.c of: fix sparse warning in of_pci_range_parser_one 2017-05-04 12:58:48 -05:00
base.c DeviceTree for 4.12: 2017-05-05 19:33:07 -07:00
device.c iommu/of: Ignore all errors except EPROBE_DEFER 2017-05-30 11:31:32 +02:00
dynamic.c
fdt_address.c
fdt.c DeviceTree fixes for 4.12-rc: 2017-05-19 15:03:24 -07:00
irq.c of: fix sparse warnings in fdt, irq, reserved mem, and resolver code 2017-05-04 14:01:13 -05:00
Kconfig
Makefile
of_mdio.c mdio_bus: Issue GPIO RESET to PHYs. 2017-04-24 12:40:24 -04:00
of_net.c
of_numa.c of: fix "/cpus" reference leak in of_numa_parse_cpu_nodes() 2017-04-18 11:04:12 -05:00
of_pci_irq.c
of_pci.c
of_private.h of: fix unittest build without CONFIG_OF_OVERLAY 2017-04-28 16:17:56 -05:00
of_reserved_mem.c Partially Revert "of: fix sparse warnings in fdt, irq, reserved mem, and resolver code" 2017-05-11 10:26:22 -05:00
overlay.c
pdt.c
platform.c of/platform: Make of_platform_device_destroy globally visible 2017-05-22 18:01:46 +02:00
resolver.c of: fix sparse warnings in fdt, irq, reserved mem, and resolver code 2017-05-04 14:01:13 -05:00
unittest.c of/unittest: Missing unlocks on error 2017-05-04 11:07:38 -05:00