0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-25 06:26:15 +00:00
openwrt/target/linux/bcm27xx/patches-6.6/950-0857-drm-vc4-Initialise-the-tv_mode-property-default-from.patch
Álvaro Fernández Rojas 8c405cdccc bcm27xx: add 6.6 kernel patches
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>
2024-06-18 18:52:49 +02:00

29 lines
1.0 KiB
Diff

From 1a08ae664765eed13ea08d99e045e30cc0687e0b Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Thu, 25 Jan 2024 17:27:42 +0000
Subject: [PATCH 0857/1085] drm/vc4: Initialise the tv_mode property default
from cmdline_mode.
With the command line parser now providing the information about
the tv mode, use that as the preferred choice for initialising the
default of the tv_mode property.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
drivers/gpu/drm/vc4/vc4_vec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/drivers/gpu/drm/vc4/vc4_vec.c
+++ b/drivers/gpu/drm/vc4/vc4_vec.c
@@ -370,7 +370,9 @@ static const struct drm_prop_enum_list l
enum drm_connector_tv_mode
vc4_vec_get_default_mode(struct drm_connector *connector)
{
- if (vc4_vec_tv_norm) {
+ if (connector->cmdline_mode.tv_mode_specified) {
+ return connector->cmdline_mode.tv_mode;
+ } else if (vc4_vec_tv_norm) {
int ret;
ret = drm_get_tv_mode_from_name(vc4_vec_tv_norm, strlen(vc4_vec_tv_norm));