mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			867 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			867 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
From 0715fdccf7930f3b864aee3d2afaaa60afa6e5bc Mon Sep 17 00:00:00 2001
 | 
						|
From: Maxime Ripard <maxime@cerno.tech>
 | 
						|
Date: Mon, 11 Jul 2022 10:38:25 +0200
 | 
						|
Subject: [PATCH 056/726] drm/vc4: hvs: Skip DebugFS Registration for FKMS
 | 
						|
 | 
						|
FKMS doesn't have an HVS and it's expected. Return from the debugfs init
 | 
						|
function immediately if we're running with fkms.
 | 
						|
 | 
						|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
 | 
						|
---
 | 
						|
 drivers/gpu/drm/vc4/vc4_hvs.c | 3 +++
 | 
						|
 1 file changed, 3 insertions(+)
 | 
						|
 | 
						|
diff --git a/drivers/gpu/drm/vc4/vc4_hvs.c b/drivers/gpu/drm/vc4/vc4_hvs.c
 | 
						|
index 97388f9a75bc..094887d4673e 100644
 | 
						|
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
 | 
						|
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
 | 
						|
@@ -975,6 +975,9 @@ int vc4_hvs_debugfs_init(struct drm_minor *minor)
 | 
						|
 	struct vc4_hvs *hvs = vc4->hvs;
 | 
						|
 	int ret;
 | 
						|
 
 | 
						|
+	if (vc4->firmware_kms)
 | 
						|
+		return 0;
 | 
						|
+
 | 
						|
 	if (!vc4->hvs)
 | 
						|
 		return -ENODEV;
 | 
						|
 
 | 
						|
-- 
 | 
						|
2.33.1
 | 
						|
 |