Skip to contentSkip to conversation

drm/panel: simple: Fix Powertip PH800480T013 bpc specifier

PATCH In review Marek Vasut 2 participants 2 messages May 30, 2023 – May 31, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/panel: simple: Fix Powertip PH800480T013 bpc specifier

This panel is 8 bits per channel DPI panel, add the missing .bpc specifier otherwise the kernel is complaining about it as follows:
"
panel-simple panel: Expected bpc in {6,8} but got: 0
"

Fixes d69de69f2be1 ("drm/panel: simple: Add Powertip PH800480T013 panel")

---
Cc: Daniel Vetter <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: [email protected]

---
 drivers/gpu/drm/panel/panel-simple.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-simple.c +1 -0
index 108ebe95590bc..02e3ddf58af07 100644
@@ -3327,6 +3327,7 @@ static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
 static const struct panel_desc powertip_ph800480t013_idf02  = {
 	.modes = &powertip_ph800480t013_idf02_mode,
 	.num_modes = 1,
+	.bpc = 8,
 	.size = {
 		.width = 152,
 		.height = 91,
Signature · 1 line
2.39.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Marek Vasut

This panel is 8 bits per channel DPI panel, add the missing .bpc specifier otherwise the kernel is complaining about it as follows:
"
panel-simple panel: Expected bpc in {6,8} but got: 0
"

Fixes d69de69f2be1 ("drm/panel: simple: Add Powertip PH800480T013 panel")

---
Cc: Daniel Vetter <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: [email protected]

---
  drivers/gpu/drm/panel/panel-simple.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-simple.c +0 -0
index 108ebe95590bc..02e3ddf58af07 100644

drivers/gpu/drm/panel/panel-simple.c static const struct drm_display_mode powertip_ph800480t013_idf02_mode = { · line 3333

Quoted 7 lines
drivers/gpu/drm/panel/panel-simple.c +1 -0
@@ -3327,6 +3327,7 @@ static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
  static const struct panel_desc powertip_ph800480t013_idf02  = {
  	.modes = &powertip_ph800480t013_idf02_mode,
  	.num_modes = 1,
+	.bpc = 8,
  	.size = {
  		.width = 152,
  		.height = 91,