linux-postmarketos-exynos4: disable HDMI for Midas (MR 3395)

Disable HDMI as workaround, as it seems to be buggy when HDMI is
unplugged. It's apparently in DRM_MODE_CONNECTED state, but without size
and with no modes. According to Guido from Phosh this is a bug and
should be fixed in the kernel. By disabling this until it is fixed, we
get Phosh working again.

Related: https://gitlab.gnome.org/World/Phosh/phosh/-/issues/828
This commit is contained in:
Oliver Smith 2022-09-01 22:05:08 +02:00
parent 48cad306b9
commit fb3b854976
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 66 additions and 1 deletions

View file

@ -0,0 +1,63 @@
From 335011b36ca12391000731b3f8371e801069e87b Mon Sep 17 00:00:00 2001
From: Oliver Smith <ollieparanoid@postmarketos.org>
Date: Thu, 1 Sep 2022 21:56:03 +0200
Subject: [PATCH] ARM: dts: exynos: disable HDMI on Midas
Disable it as workaround because when unplugged, HDMI appears as
DRM_MNODE_CONNECTED with a surface are of 0x0.
Related: https://gitlab.gnome.org/World/Phosh/phosh/-/issues/828
---
arch/arm/boot/dts/exynos4412-midas.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/exynos4412-midas.dtsi b/arch/arm/boot/dts/exynos4412-midas.dtsi
index 6e854e732599..79b9f773d98f 100644
--- a/arch/arm/boot/dts/exynos4412-midas.dtsi
+++ b/arch/arm/boot/dts/exynos4412-midas.dtsi
@@ -307,11 +307,13 @@ sii9234: hdmi-bridge@39 {
interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x39>;
+/*
port {
mhl_to_hdmi: endpoint {
remote-endpoint = <&hdmi_to_mhl>;
};
};
+*/
};
};
@@ -544,6 +546,7 @@ &gpu {
status = "okay";
};
+/*
&hdmi {
hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
@@ -566,6 +569,7 @@ hdmi_to_mhl: endpoint {
};
};
};
+*/
&hsotg {
vusb_d-supply = <&ldo15_reg>;
@@ -1200,10 +1204,12 @@ sdhci2_cd: sdhci2-cd-irq-pins {
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
};
+/*
hdmi_hpd: hdmi-hpd-pins {
samsung,pins = "gpx3-7";
samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
};
+*/
sleep1: sleep-state {
PIN_SLP(gpk0-0, PREV, NONE);
--
2.30.2

View file

@ -4,7 +4,7 @@
pkgname=linux-postmarketos-exynos4
pkgver=5.18.0
pkgrel=1
pkgrel=2
pkgdesc="Mainline kernel fork for Samsung Exynos4 devices"
arch="armv7"
_carch="arm"
@ -49,6 +49,7 @@ source="
0008-ARM-dts-driver-exynos-n710x-add-panel.patch
0009-ARM-dts-exynos-n710x-add-leds.patch
0010-drm-Allow-DRM_IOCTL_MODE_CREATE_DUMB-on-render-nodes.patch
0011-ARM-dts-exynos-disable-HDMI-on-Midas.patch
initramfs.list
init
"
@ -100,6 +101,7 @@ de87e6a6608165cdc35a03bd10dedef1c12a2a9e1f66f500879c05b287bae7181cc95021a3a2aad6
054a03b327386b32b516cf7f9fdbf15adba9b3fb6d0d20473493f7e4538202496829443eb18f9a928b4959b1296ee98171d4a19d8fcf58439d4fdb122fbb97ac 0008-ARM-dts-driver-exynos-n710x-add-panel.patch
63c9e1a1d92e1deb286d6623e116e1cce36bfbae3f9b5db60dc1751573af7477003c7680afe054e7170fee632fd11e38c1bea12ec51299d547557112784f762f 0009-ARM-dts-exynos-n710x-add-leds.patch
56b08a9b72760f26cdbda9f89875ee4b502dca4d9dd15bf33c8ed1cda82cf75c9588514a378fd2e942a41e52378348cc8e55da303660cce59bf8a12287568daf 0010-drm-Allow-DRM_IOCTL_MODE_CREATE_DUMB-on-render-nodes.patch
5b09f9ee24c092143da79da6d89fbd4ff2689a9e74beeb5bef51cab47f5834f4857ecb8f08333722b1c4638354c27ab3db80aa2ad7b8d731743e53e0a08f2f6d 0011-ARM-dts-exynos-disable-HDMI-on-Midas.patch
aaff0332b90e1f9f62de1128cace934717336e54ab09de46477369fa808302482d97334e43a85ee8597c1bcab64d3484750103559fea2ce8cd51776156bf7591 initramfs.list
09f1f214a24300696809727a7b04378887c06ca6f40803ca51a12bf2176a360b2eb8632139d6a0722094e05cb2038bdb04018a1e3d33fc2697674552ade03bee init
"