iommu: msm: Do not access halt regs. to early

Venus and MDP are secure IOMMU's. Access to the halt register
is protected until a call has been made into the secure environment.
Change the location of the halt call to ensure HLOS has access to the
halt register space.

In addition, do not halt the IOMMU before writing bfb registers
since this will cause L2 error.

Change-Id: I00505a7173d8890a10b72da3c1db1e91bbf08ace
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2 files changed