The patches were generated from the RPi repo with the following command: git format-patch v6.6.34..rpi-6.1.y Some patches needed rebasing and, as usual, the applied and reverted, wireless drivers, Github workflows, READMEs and defconfigs patches were removed. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			859 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			859 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
From ef26afea511c92dc066764c9c24a6112bbccbe4b Mon Sep 17 00:00:00 2001
 | 
						|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
 | 
						|
Date: Thu, 2 Dec 2021 18:10:55 +0000
 | 
						|
Subject: [PATCH 0324/1085] drm/panel-simple: Populate bpc when using panel-dpi
 | 
						|
 | 
						|
panel-dpi doesn't know the bit depth, so in the same way that
 | 
						|
DPI is guessed for the connector type, guess that it'll be 8bpc.
 | 
						|
 | 
						|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
 | 
						|
---
 | 
						|
 drivers/gpu/drm/panel/panel-simple.c | 2 ++
 | 
						|
 1 file changed, 2 insertions(+)
 | 
						|
 | 
						|
--- a/drivers/gpu/drm/panel/panel-simple.c
 | 
						|
+++ b/drivers/gpu/drm/panel/panel-simple.c
 | 
						|
@@ -496,6 +496,8 @@ static int panel_dpi_probe(struct device
 | 
						|
 
 | 
						|
 	/* We do not know the connector for the DT node, so guess it */
 | 
						|
 	desc->connector_type = DRM_MODE_CONNECTOR_DPI;
 | 
						|
+	/* Likewise for the bit depth. */
 | 
						|
+	desc->bpc = 8;
 | 
						|
 
 | 
						|
 	panel->desc = desc;
 | 
						|
 
 |