From: Suman Anna Date: Wed, 22 Oct 2014 22:22:34 +0000 (-0500) Subject: iommu/omap: Fix bus error on debugfs access of unattached IOMMU X-Git-Tag: omap-for-v3.20/drop-legacy-3517~103^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5cf5c5377fbd0a1ff2a09ad1f0c7e261aabc567;p=pandora-kernel.git iommu/omap: Fix bus error on debugfs access of unattached IOMMU Any debugfs access on an OMAP IOMMU that is not enabled (done during attach) results in a bus error due to access of registers without the clock or the reset enabled for the respective IOMMU. So, add a check to make sure the IOMMU is enabled/attached by a client device. This gracefully prints a "Operation not permitted" trace when the corresponding IOMMU is not enabled. Signed-off-by: Suman Anna Acked-by: Laurent Pinchart Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed