mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
51db334005
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.54 Removed upstreamed: generic/backport-6.6/780-24-v6.12-r8169-disable-ALDPS-per-default-for-RTL8125.patch[1] generic/pending-6.6/360-selftests-bpf-portability-of-unprivileged-tests.patch[2] Manually rebased: bcm53xx/patches-6.6/180-usb-xhci-add-support-for-performing-fake-doorbell.patch bmips/patches-6.6/200-mips-bmips-automatically-detect-CPU-frequency.patch All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.54&id=50d062b6cc90c45a0de54e9bd9903c82777d66bf 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.54&id=103c0431c7fb4790affea121126840dbfb146341 Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/16602 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From accb4b40a97c432b8a83f6fedf12b015aebb711d Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Mon, 24 Apr 2023 18:32:45 +0100
|
|
Subject: [PATCH 0038/1085] drm/vc4: Limit max_bpc to 8 on Pi0-3
|
|
|
|
Pi 0-3 have no deep colour support and only 24bpp output,
|
|
so max_bpc should remain as 8.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hdmi.c | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
@@ -762,7 +762,6 @@ static int vc4_hdmi_connector_init(struc
|
|
|
|
drm_connector_attach_colorspace_property(connector);
|
|
drm_connector_attach_tv_margin_properties(connector);
|
|
- drm_connector_attach_max_bpc_property(connector, 8, 12);
|
|
|
|
connector->polled = (DRM_CONNECTOR_POLL_CONNECT |
|
|
DRM_CONNECTOR_POLL_DISCONNECT);
|
|
@@ -771,8 +770,12 @@ static int vc4_hdmi_connector_init(struc
|
|
connector->doublescan_allowed = 0;
|
|
connector->stereo_allowed = 1;
|
|
|
|
- if (vc4_hdmi->variant->supports_hdr)
|
|
+ if (vc4_hdmi->variant->supports_hdr) {
|
|
+ drm_connector_attach_max_bpc_property(connector, 8, 12);
|
|
drm_connector_attach_hdr_output_metadata_property(connector);
|
|
+ } else {
|
|
+ drm_connector_attach_max_bpc_property(connector, 8, 8);
|
|
+ }
|
|
|
|
vc4_hdmi_attach_broadcast_rgb_property(dev, vc4_hdmi);
|
|
|