fix(cellular, touch): prevent baseband crash loop, add touch NULL guard, and safe SIM info queries
Offline project checks / check (push) Canceled after 0s
Offline project checks / check (push) Canceled after 0s
- Guard cellular auto-dialing: check for active IPA/rmnet hardware datapath before connecting, avoiding Hexagon modem DSP assert panics. - Disable connection.autoconnect on cellular network profiles to prevent NetworkManager auto-dial loops. - Add QMI fallback for modem/SIM status queries when ModemManager lacks netdev port. - Fix Novatek touchscreen driver NULL pointer dereference on panel unprepare/suspend (0041 patch). - Bump candidate kernel release to 7.2.12-r14 with updated checksums and DT binding supplies. - Add comprehensive test coverage for cellular datapath detection and connection guards.
This commit is contained in:
+3
-2
@@ -8,7 +8,7 @@ Subject: [PATCH] arm64: dts: qcom: platina: add dual touch, BOE panel, cut VSP/V
|
||||
|
||||
--- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-platina.dts
|
||||
+++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-platina.dts
|
||||
@@ -1182,3 +1182,50 @@
|
||||
@@ -1182,3 +1182,51 @@
|
||||
&pm660_haptics {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -32,7 +32,8 @@ Subject: [PATCH] arm64: dts: qcom: platina: add dual touch, BOE panel, cut VSP/V
|
||||
+ compatible = "novatek,NVT-ts", "novatek,nt36672a-ts";
|
||||
+ reg = <0x62>;
|
||||
+
|
||||
+ vddio-supply = <&vreg_l11a_1p8>;
|
||||
+ vcc-supply = <&panel_vsp>;
|
||||
+ iovcc-supply = <&vreg_l11a_1p8>;
|
||||
+ panel = <&panel>;
|
||||
+
|
||||
+ pinctrl-0 = <&ts_int_active &ts_rst_n>;
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From: Antigravity <antigravity@local>
|
||||
Subject: [PATCH] Input: novatek-nvt-ts - fix NULL pointer dereference in follower unprepare
|
||||
|
||||
When on_novatek_panel_prepared fails to initialize the touch controller
|
||||
(e.g., due to unsupported parameters or communication error), data->input
|
||||
is never allocated. During unprepare or suspend, accessing data->input->mutex
|
||||
causes a kernel NULL pointer dereference.
|
||||
Add NULL checks before accessing data->input in unprepare, suspend, and resume.
|
||||
|
||||
--- a/drivers/input/touchscreen/novatek-nvt-ts.c
|
||||
+++ b/drivers/input/touchscreen/novatek-nvt-ts.c
|
||||
@@ -194,6 +194,9 @@
|
||||
if (data->is_panel_follower)
|
||||
return 0;
|
||||
|
||||
+ if (!data->input)
|
||||
+ return 0;
|
||||
+
|
||||
guard(mutex)(&data->input->mutex);
|
||||
|
||||
if (input_device_enabled(data->input))
|
||||
@@ -208,6 +211,9 @@
|
||||
if (data->is_panel_follower)
|
||||
return 0;
|
||||
|
||||
+ if (!data->input)
|
||||
+ return 0;
|
||||
+
|
||||
guard(mutex)(&data->input->mutex);
|
||||
|
||||
if (input_device_enabled(data->input))
|
||||
@@ -350,6 +356,9 @@
|
||||
struct nvt_ts_data *data = container_of(follower, struct nvt_ts_data, panel_follower);
|
||||
dev_info(&data->client->dev, "%s\n", __func__); // REMOVEME
|
||||
|
||||
+ if (!data->input)
|
||||
+ return 0;
|
||||
+
|
||||
guard(mutex)(&data->input->mutex);
|
||||
|
||||
if (input_device_enabled(data->input))
|
||||
@@ -3,7 +3,7 @@ maintainer="Alexey Minnekhanov <alexeymin@minlexx.ru>"
|
||||
_flavor="postmarketos-qcom-sdm660"
|
||||
pkgname=linux-$_flavor
|
||||
pkgver=7.2.12
|
||||
pkgrel=13
|
||||
pkgrel=14
|
||||
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon 660 SoC"
|
||||
arch="aarch64"
|
||||
url="https://kernel.org/"
|
||||
@@ -68,6 +68,7 @@ source="
|
||||
0038-imx363-platina-legacy-frequency.patch
|
||||
0039-venus-legacy-h264-transform.patch
|
||||
0040-platina-touch-dual-panel-vsp-power-dvfs.patch
|
||||
0041-novatek-nvt-ts-null-check.patch
|
||||
stable-7.2.3-4.patch
|
||||
stable-7.2.4-5.patch
|
||||
stable-7.2.5-6.patch
|
||||
@@ -163,7 +164,8 @@ ecfee5c3fde9c5342195d5e25f7103d909144d9602497aa4de713fc55d9c03f89601081535d43da7
|
||||
62031fc20f13bec1bc9a0a67134a2967acbf76cd2d9d3eea9cf5d8176d5bbe61e0063b165b9caf959ec8d923fbb8897cb7421c723d38d695da51a2cb3eddf6c2 0037-imx363-full-field-binning.patch
|
||||
b1094708de883b3aecaf52ddc7f9315c150f6234165ab02ef7a021bc18da4d56cc5eab0f9239583a3b596c307ef71b891f0d735d889156e783b7bb21ba26b448 0038-imx363-platina-legacy-frequency.patch
|
||||
61a598e63d83c0489ba130231cd0a4c2dc4351de5c122cef9b7170f7f516bae7573c744535035c53e2642a96d13fe5048c07e4c908de8f64c90a3cd8809ee84c 0039-venus-legacy-h264-transform.patch
|
||||
10c8cfcdb1dd5019d02f2657fdb6bc8a53fe9ac1fe3fd64a1ebaea3aee67717492606b1a97f47d58d6d9812c0ae332e8633e3abaac0d6e08050dbaf800ca563b 0040-platina-touch-dual-panel-vsp-power-dvfs.patch
|
||||
2af6e0d149474ae8fabdd78d7156ef6f68ae5a86ceac2565c80daa517bfb9ab04bbf9c96ccec8ae121c211ead1e8304e2d572be489c61022e0157ed00c21097e 0040-platina-touch-dual-panel-vsp-power-dvfs.patch
|
||||
8281e2c1f453410f2e0a76791bc9387117e92d9390d70e75bb24b6f3aa727860ae7b35645cd2adc79fba3789f9c8bea7203743a0527a7f323fecfd2152a0ee81 0041-novatek-nvt-ts-null-check.patch
|
||||
1a7f9cf2443c0f059ac64a78dddee77fca584288edeea943aa45db05fb5e3b7b2930dab595f6c0911671bf5517bd64550a65b097f47d5179cc7454ec90db56cd stable-7.2.3-4.patch
|
||||
303d4a717c67d5dbb5d17c37882b3ef1b6b44b3cf9b17723a611efe1f028019d5ef53c0e3595ed79f5468a46ede2d640171b9dd97ce2dd99b487d0406ef79f16 stable-7.2.4-5.patch
|
||||
b09a94d0eb3c0382ad8998843019ea0d52ae5a89ad7ba54072b21eeea2c7ee602c57a32a0d9b99a2c5ae1f581dadc4d4395096e905b54678affc18125d9b8cba stable-7.2.5-6.patch
|
||||
|
||||
Reference in New Issue
Block a user