summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-06-17 15:25:27 -0700
committerEric Anholt <eric@anholt.net>2015-06-17 16:53:04 -0700
commit6ea08947f9caa843e12a4fcf158740c368135885 (patch)
tree209a036c15d8585e3b0d49baef8b08fcca77b369
parent4c5a13277fe32bb9727bd458f540196c379503d9 (diff)
downloadlinux-6ea08947f9caa843e12a4fcf158740c368135885.tar.gz
drm/vc4: Don't forget to turn the hardware off on unbind.
This helps make sure that we don't have any state left around (like the binner overflow allocation). Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r--drivers/gpu/drm/vc4/vc4_v3d.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_v3d.c b/drivers/gpu/drm/vc4/vc4_v3d.c
index 2ac27c9944f1..8841d8e97695 100644
--- a/drivers/gpu/drm/vc4/vc4_v3d.c
+++ b/drivers/gpu/drm/vc4/vc4_v3d.c
@@ -232,6 +232,8 @@ static void vc4_v3d_unbind(struct device *dev, struct device *master,
V3D_WRITE(V3D_BPOA, 0);
V3D_WRITE(V3D_BPOS, 0);
+ vc4_v3d_set_power(vc4, false);
+
vc4->v3d = NULL;
}