mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +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>
47 lines
1.7 KiB
Diff
47 lines
1.7 KiB
Diff
From b5f843fe7ece2b75a783fa785d6c7c6647a7a46d Mon Sep 17 00:00:00 2001
|
|
From: Michiiel <94533767+Michiiel@users.noreply.github.com>
|
|
Date: Thu, 30 May 2024 15:43:21 +0200
|
|
Subject: [PATCH 1109/1135] =?UTF-8?q?fix=20Hsync=20and=20Vsync=20polarity?=
|
|
=?UTF-8?q?=20can't=20change=20from=20negatieve=20to=20positief=20?=
|
|
=?UTF-8?q?=E2=80=A6=20(#6193)?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
vc4/hdmi: Fix Hsync and Vsync polarity changes
|
|
|
|
Polarity bits were only ever set and never cleared.
|
|
Make sure they can also be cleared.
|
|
|
|
Signed-off-by: Michiel Vanbiervliet <michiel.vanbiervliet@gmail.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hdmi.c | 17 +++++++++--------
|
|
1 file changed, 9 insertions(+), 8 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
@@ -1889,14 +1889,15 @@ static void vc4_hdmi_encoder_post_crtc_e
|
|
spin_lock_irqsave(&vc4_hdmi->hw_lock, flags);
|
|
|
|
HDMI_WRITE(HDMI_VID_CTL,
|
|
- HDMI_READ(HDMI_VID_CTL) |
|
|
- VC4_HD_VID_CTL_ENABLE |
|
|
- VC4_HD_VID_CTL_CLRRGB |
|
|
- VC4_HD_VID_CTL_UNDERFLOW_ENABLE |
|
|
- VC4_HD_VID_CTL_FRAME_COUNTER_RESET |
|
|
- VC4_HD_VID_CTL_BLANK_INSERT_EN |
|
|
- (vsync_pos ? 0 : VC4_HD_VID_CTL_VSYNC_LOW) |
|
|
- (hsync_pos ? 0 : VC4_HD_VID_CTL_HSYNC_LOW));
|
|
+ (HDMI_READ(HDMI_VID_CTL) &~
|
|
+ (VC4_HD_VID_CTL_VSYNC_LOW | VC4_HD_VID_CTL_HSYNC_LOW)) |
|
|
+ VC4_HD_VID_CTL_ENABLE |
|
|
+ VC4_HD_VID_CTL_CLRRGB |
|
|
+ VC4_HD_VID_CTL_UNDERFLOW_ENABLE |
|
|
+ VC4_HD_VID_CTL_FRAME_COUNTER_RESET |
|
|
+ VC4_HD_VID_CTL_BLANK_INSERT_EN |
|
|
+ (vsync_pos ? 0 : VC4_HD_VID_CTL_VSYNC_LOW) |
|
|
+ (hsync_pos ? 0 : VC4_HD_VID_CTL_HSYNC_LOW));
|
|
|
|
HDMI_WRITE(HDMI_VID_CTL,
|
|
HDMI_READ(HDMI_VID_CTL) & ~VC4_HD_VID_CTL_BLANKPIX);
|