[Intel-gfx] [PATCH v6 6/7] drm/i915/display: Fix port_identifier function
Balasubramani Vivekanandan
balasubramani.vivekanandan at intel.com
Tue Oct 4 12:53:43 UTC 2022
port_identifier function was broken when TypeC ports were using enum
aliases. It would return wrong string for TypeC ports.
With unique enums for DDI ports now, fix port_identifier to cover all
ports.
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan at intel.com>
---
drivers/gpu/drm/i915/display/intel_display.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_display.h b/drivers/gpu/drm/i915/display/intel_display.h
index 62604cadf0b8..4a5f7df7492b 100644
--- a/drivers/gpu/drm/i915/display/intel_display.h
+++ b/drivers/gpu/drm/i915/display/intel_display.h
@@ -250,6 +250,18 @@ static inline const char *port_identifier(enum port port)
return "Port H";
case PORT_I:
return "Port I";
+ case PORT_TC1:
+ return "Port TC1";
+ case PORT_TC2:
+ return "Port TC2";
+ case PORT_TC3:
+ return "Port TC3";
+ case PORT_TC4:
+ return "Port TC4";
+ case PORT_TC5:
+ return "Port TC5";
+ case PORT_TC6:
+ return "Port TC6";
default:
return "<invalid>";
}
--
2.34.1
More information about the Intel-gfx
mailing list