summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_fb_helper.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2015-01-24 23:13:50 +0200
committerJoerg Roedel <jroedel@suse.de>2015-01-30 13:46:07 +0100
commitbb590c9011a7c4e195af486438ead666023f96bd (patch)
tree54fc2b2c881ca820303d14227b053cfd19c87e5a /drivers/gpu/drm/drm_fb_helper.c
parentf20ed39f53145e45edd27ff9fba5a60429c40bac (diff)
downloadop-kernel-dev-bb590c9011a7c4e195af486438ead666023f96bd.zip
op-kernel-dev-bb590c9011a7c4e195af486438ead666023f96bd.tar.gz
iommu/ipmmu-vmsa: Fix IOMMU lookup when multiple IOMMUs are registered
When adding a new device the driver loops over all registered IOMMUs and calls the ipmmu_find_utlbs() function to parse the DT iommus attribute. The function returns an error when the IOMMU referenced in DT doesn't match the current IOMMU. The caller incorrectly breaks from the loop immediately when the error is reported, resulting in only the first IOMMU being considered. Fix this, and while at it move code that isn't specific to an IOMMU instance out of the loop. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/gpu/drm/drm_fb_helper.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud