These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From 328de46dd7145f5bbf117d77d8eb5124d6c8b253 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Tue, 28 Jan 2025 17:40:03 +0000
|
|
Subject: [PATCH] drm/edid: When reset, assume HDMI displays support RGB444
|
|
|
|
If an HDMI connector has no EDID and the mode is set via the
|
|
kernel command line, then drm_reset_display_info() is the only
|
|
thing that will have set up any of connector->display_info.
|
|
|
|
With commit 26ff1c38fc29 ("drm/connector: hdmi: Compute bpc
|
|
and format automatically"), it is now checked that
|
|
DRM_COLOR_FORMAT_RGB444 is supported. Whilst it doesn't fail
|
|
the request, it does log dev_warn for every commit, spamming
|
|
the log.
|
|
|
|
For HDMI connectors initialise the color_format field to say
|
|
it supports RGB444.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/drm_edid.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/gpu/drm/drm_edid.c
|
|
+++ b/drivers/gpu/drm/drm_edid.c
|
|
@@ -6587,7 +6587,11 @@ static void drm_reset_display_info(struc
|
|
info->height_mm = 0;
|
|
|
|
info->bpc = 0;
|
|
- info->color_formats = 0;
|
|
+ if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
|
|
+ connector->connector_type == DRM_MODE_CONNECTOR_HDMIB)
|
|
+ info->color_formats = DRM_COLOR_FORMAT_RGB444;
|
|
+ else
|
|
+ info->color_formats = 0;
|
|
info->cea_rev = 0;
|
|
info->max_tmds_clock = 0;
|
|
info->dvi_dual = false;
|