Skip to content

Commit 85a74b5

Browse files
committed
rmtfs: add delta to fix wifi crash on shutdown
From upstream fix: linux-msm/rmtfs@5b214f6 Closes: #40 Signed-off-by: Robie Basak <[email protected]>
1 parent 7ab9fcf commit 85a74b5

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
diff -Nru rmtfs-1.1/debian/changelog rmtfs-1.1/debian/changelog
2+
--- rmtfs-1.1/debian/changelog 2025-05-19 11:18:34.000000000 +0100
3+
+++ rmtfs-1.1/debian/changelog 2025-07-24 17:19:35.000000000 +0100
4+
@@ -1,3 +1,10 @@
5+
+rmtfs (1.1-3qcom1) trixie; urgency=medium
6+
+
7+
+ * d/p/0002-rmtfs.service-Fix-start-stop-ordering-between-rmtfs-.patch: fix
8+
+ wifi driver crash on reboot by ensuring correct service ordering.
9+
+
10+
+ -- Robie Basak <[email protected]> Thu, 24 Jul 2025 17:19:35 +0100
11+
+
12+
rmtfs (1.1-3) unstable; urgency=medium
13+
14+
* d/control: only build for ARMv7+
15+
diff -Nru rmtfs-1.1/debian/patches/0002-rmtfs.service-Fix-start-stop-ordering-between-rmtfs-.patch rmtfs-1.1/debian/patches/0002-rmtfs.service-Fix-start-stop-ordering-between-rmtfs-.patch
16+
--- rmtfs-1.1/debian/patches/0002-rmtfs.service-Fix-start-stop-ordering-between-rmtfs-.patch 1970-01-01 01:00:00.000000000 +0100
17+
+++ rmtfs-1.1/debian/patches/0002-rmtfs.service-Fix-start-stop-ordering-between-rmtfs-.patch 2025-07-24 17:19:28.000000000 +0100
18+
@@ -0,0 +1,42 @@
19+
+From 5b214f61b9b82998bf13f4bfd16fe4e2cd29c086 Mon Sep 17 00:00:00 2001
20+
+From: Loic Poulain <[email protected]>
21+
+Date: Tue, 10 Jun 2025 14:58:52 +0200
22+
+Subject: [PATCH] rmtfs.service: Fix start/stop ordering between rmtfs and
23+
+ NetworkManager
24+
+
25+
+Since rmtfs typically provides resources for wireless and modem-related
26+
+processors, it's important to ensure that this service starts before
27+
+and stops after NetworkManager.
28+
+
29+
+On platforms like QCOM RB1, this sequencing prevents the Wi-Fi interface(s)
30+
+from being left in a dangling state while NetworkManager attempts to tear
31+
+down the interface(s):
32+
+https://github.com/qualcomm-linux/qcom-deb-images/issues/40#issuecomment-2944265370
33+
+
34+
+The 'Before' dependency directive is ignored if NetworkManager is disabled or absent.
35+
+
36+
+Signed-off-by: Loic Poulain <[email protected]>
37+
+
38+
+Origin: backport, https://github.com/linux-msm/rmtfs/commit/5b214f61b9b82998bf13f4bfd16fe4e2cd29c086
39+
+Bug: https://github.com/linux-msm/rmtfs/pull/24
40+
+Bug-qcom: https://github.com/qualcomm-linux/qcom-deb-images/issues/40
41+
+Last-Update: 2025-07-24
42+
+---
43+
+ rmtfs-dir.service.in | 1 +
44+
+ rmtfs.service.in | 1 +
45+
+ 2 files changed, 2 insertions(+)
46+
+
47+
+diff --git a/rmtfs.service.in b/rmtfs.service.in
48+
+index abd12df..2dc08df 100644
49+
+--- a/rmtfs.service.in
50+
++++ b/rmtfs.service.in
51+
+@@ -1,5 +1,6 @@
52+
+ [Unit]
53+
+ Description=Qualcomm remotefs service
54+
++Before=NetworkManager.service
55+
+
56+
+ [Service]
57+
+ ExecStart=RMTFS_PATH/rmtfs -r -P -s
58+
+--
59+
+2.48.1
60+
+
61+
diff -Nru rmtfs-1.1/debian/patches/series rmtfs-1.1/debian/patches/series
62+
--- rmtfs-1.1/debian/patches/series 2025-05-19 11:18:34.000000000 +0100
63+
+++ rmtfs-1.1/debian/patches/series 2025-07-24 17:13:29.000000000 +0100
64+
@@ -1 +1,2 @@
65+
0001-rmtfs.service.in-Remove-dependency-on-qrtr-ns.servic.patch
66+
+0002-rmtfs.service-Fix-start-stop-ordering-between-rmtfs-.patch
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dsc_url: "https://snapshot.debian.org/archive/debian/20250724T172356Z/pool/main/r/rmtfs/rmtfs_1.1-3.dsc"
2+
dsc_sha256sum: "600df007ef07ea5e72b5a301086eec77d721871b365dfcabed64f23d1f3084f8"
3+
debdiff_file: "rmtfs_1.1-3qcom1.debdiff"
4+
suite: "trixie"

0 commit comments

Comments
 (0)