linux-postmarketos-qcom-sdm845: hotfixes for xiaomi-polaris (MR 4867)

Current 6.6 kernel has some features broken for xiaomi-polaris including
LCD and Wi-Fi.

Add two patches that fix these problems.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Icenowy Zheng 2024-02-27 20:56:44 +08:00 committed by Stefan Hansson
parent dd0ca74839
commit 8e1bb335ca
No known key found for this signature in database
GPG key ID: 8A700086A9FE41FD
3 changed files with 62 additions and 1 deletions

View file

@ -0,0 +1,29 @@
From f0de38394feba36de5448d11fe57b674dbf1f946 Mon Sep 17 00:00:00 2001
From: Icenowy Zheng <uwu@icenowy.me>
Date: Tue, 27 Feb 2024 20:38:22 +0800
Subject: [PATCH 1/2] arm64: dts: qcom: sdm845-xiaomi-polaris: Enable ath10k
host-cap skip quirk
The WiFi firmware used on Polaris (Xiaomi Mi Mix2s) doesn't
support the host-capability QMI request, hence enable the skip
quirk for this device.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
---
arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts
index e386b504e978b..8df61887e3dc4 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts
@@ -711,5 +711,6 @@ &wifi {
vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
vdd-3.3-ch1-supply = <&vreg_l23a_3p3>;
+ qcom,snoc-host-cap-skip-quirk;
status = "okay";
};
--
2.43.0

View file

@ -0,0 +1,28 @@
From cc4d4b1e5a1c9d8592f10fdcb7f8c16c279460f7 Mon Sep 17 00:00:00 2001
From: Icenowy Zheng <uwu@icenowy.me>
Date: Tue, 27 Feb 2024 20:40:41 +0800
Subject: [PATCH 2/2] drm: panel: Enable prepare_prev_first flag for NT35596s
This panel needs DSI command sent in prepare() callback, thus set the
prepare_prev_first flag to allow this.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
---
drivers/gpu/drm/panel/panel-novatek-nt35596s.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35596s.c b/drivers/gpu/drm/panel/panel-novatek-nt35596s.c
index b1c724ebf8f5e..e441409c68602 100644
--- a/drivers/gpu/drm/panel/panel-novatek-nt35596s.c
+++ b/drivers/gpu/drm/panel/panel-novatek-nt35596s.c
@@ -477,6 +477,7 @@ static int nt35596s_panel_add(struct nt35596s_panel *pinfo)
"failed to get reset gpio from DT\n");
drm_panel_init(&pinfo->base, dev, &panel_funcs, DRM_MODE_CONNECTOR_DSI);
+ pinfo->base.prepare_prev_first = true;
drm_panel_add(&pinfo->base);
--
2.43.0

View file

@ -6,7 +6,7 @@
_flavor="postmarketos-qcom-sdm845"
pkgname=linux-$_flavor
pkgver=6.6.3
pkgrel=3
pkgrel=4
pkgdesc="Mainline Kernel fork for SDM845 devices"
arch="aarch64"
_carch="arm64"
@ -24,6 +24,8 @@ _tag="sdm845-6.6.3-r3"
source="
linux-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
$_config
0001-arm64-dts-qcom-sdm845-xiaomi-polaris-Enable-ath10k-h.patch
0002-drm-panel-Enable-prepare_prev_first-flag-for-NT35596.patch
"
builddir="$srcdir/linux-$_tag"
@ -73,4 +75,6 @@ package() {
sha512sums="
621ee00668c8739503042074615e95949e55124f48c488de83bcce733fa4b140576f26ab37d47a886136f8167832751036905a18dbb7455649b146bb3dfb22cf linux-sdm845-6.6.3-r3.tar.gz
9393e50336d1b8767c67ffd347000d0191a3fa8645d77b0f8ec222cad837f8f3b2201e6bd1360d62218f5246eaea93f7bf76a7b2a4e0954360fd30291f5bb3a6 config-postmarketos-qcom-sdm845.aarch64
e0ae8b9da09cd2552244cfbcd6a63272c766d082306573a679497ab0bd30a44dfa0023503a7628b7ea87238a62da13704de5e2a57952310c7866b770e5c474ad 0001-arm64-dts-qcom-sdm845-xiaomi-polaris-Enable-ath10k-h.patch
d7c857500348a1420ccd1a255c667704e54ee88f5c563bcb92885aaa5a9b5dc5a87d12ab782822de523d01c63b277ff60b57cc5307a0663bf42ad7b69da3d1c5 0002-drm-panel-Enable-prepare_prev_first-flag-for-NT35596.patch
"