mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From 54b0a9b25d05549f960d46cfb9e81c0e380a604d Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Fri, 25 Jun 2021 17:01:33 +0200
|
|
Subject: [PATCH 498/552] drm/vc4: Remove conflicting framebuffers before
|
|
callind bind_all
|
|
|
|
The bind hooks will modify their controller registers, so simplefb is
|
|
going to be unusable anyway. Let's avoid any transient state where it
|
|
could still be in the system but no longer functionnal.
|
|
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_drv.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
|
|
index a58c168dc433..752f05701289 100644
|
|
--- a/drivers/gpu/drm/vc4/vc4_drv.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
|
|
@@ -277,6 +277,10 @@ static int vc4_drm_bind(struct device *dev)
|
|
if (ret)
|
|
return ret;
|
|
|
|
+ ret = drm_aperture_remove_framebuffers(false, "vc4drmfb");
|
|
+ if (ret)
|
|
+ goto unbind_all;
|
|
+
|
|
ret = component_bind_all(dev, drm);
|
|
if (ret)
|
|
return ret;
|
|
@@ -285,10 +289,6 @@ static int vc4_drm_bind(struct device *dev)
|
|
if (ret)
|
|
goto unbind_all;
|
|
|
|
- ret = drm_aperture_remove_framebuffers(false, "vc4drmfb");
|
|
- if (ret)
|
|
- goto unbind_all;
|
|
-
|
|
ret = vc4_kms_load(drm);
|
|
if (ret < 0)
|
|
goto unbind_all;
|
|
--
|
|
2.33.0
|
|
|