drm/msm: Make sure to detach the MMU during GPU cleanup
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 6 Feb 2017 17:39:29 +0000 (10:39 -0700)
committerRob Clark <robdclark@gmail.com>
Sat, 8 Apr 2017 10:59:36 +0000 (06:59 -0400)
commit9873ef0743535ee71efecfb5228f96432e393f8a
treef6790acfcbbcfa6d1095ae10a8cfc31ac427c1fb
parent3a882143794ab31aa25551ba90b2d0740c4973c4
drm/msm: Make sure to detach the MMU during GPU cleanup

We should be detaching the MMU before destroying the address
space. To do this cleanly, the detach has to happen in
adreno_gpu_cleanup() because it needs access to structs
in adreno_gpu.c.  Plus it is better symmetry to have
the attach and detach at the same code level.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_gpu.c