mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
ed1536e0b6
Deleted (upstreamed): generic/backport-5.15/890-v5.19-net-sfp-Add-tx-fault-workaround-for-Huawei-MA5671A-SFP-ON.patch [1] Other patches automatically rebased. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.41&id=99858114a3b2c8f5f8707d9bbd46c50f547c87c0 Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From 96ddf993aa82e33e910110929816b6c83720dc99 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.org>
|
|
Date: Wed, 31 Jul 2019 17:36:34 +0100
|
|
Subject: [PATCH] drm/vc4: A present but empty dmas disables audio
|
|
|
|
Overlays are unable to remove properties in the base DTB, but they
|
|
can overwrite them. Allow a present but empty 'dmas' property
|
|
to also disable the HDMI audio interface.
|
|
|
|
See: https://github.com/raspberrypi/linux/issues/2489
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hdmi.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
@@ -1693,10 +1693,12 @@ static int vc4_hdmi_audio_init(struct vc
|
|
const __be32 *addr;
|
|
int index;
|
|
int ret;
|
|
+ int len;
|
|
|
|
- if (!of_find_property(dev->of_node, "dmas", NULL)) {
|
|
+ if (!of_find_property(dev->of_node, "dmas", &len) ||
|
|
+ len == 0) {
|
|
dev_warn(dev,
|
|
- "'dmas' DT property is missing, no HDMI audio\n");
|
|
+ "'dmas' DT property is missing or empty, no HDMI audio\n");
|
|
return 0;
|
|
}
|
|
|