8d419f
From fd6e7c8949218df6b61a5b9186aba3f9d1d91f75 Mon Sep 17 00:00:00 2001
8d419f
From: Mario Limonciello <superm1@gmail.com>
8d419f
Date: Mon, 9 May 2022 20:16:26 -0500
8d419f
Subject: [PATCH] Set autosuspend delay for Fibocom LG850-GL
8d419f
8d419f
It has been shown that the autosuspend delay for this device enacted
8d419f
by modem manager will race with suspend and cause system suspend
8d419f
failures.
8d419f
8d419f
This occurred in ChromiumOS on a chromebook, but there is no reason
8d419f
it won't happen in regular notebooks with the same WWAN.  To avoid
8d419f
the failure delay autosuspend to a frequency longer than the polling
8d419f
rate used by modem manager.
8d419f
8d419f
Link: https://chromium-review.googlesource.com/c/chromiumos/overlays/board-overlays/+/3635003
8d419f
Link: https://github.com/freedesktop/ModemManager/blob/43e76bf1bbca8207e37d3fbddfed4bb8578f0170/src/mm-iface-modem.c#L1633
8d419f
(cherry picked from commit f32049eda3b06deaae3d6d7d06a9dfd16528c443)
8d419f
8d419f
Related: #2087778
8d419f
---
8d419f
 hwdb.d/60-autosuspend.hwdb | 7 ++++++-
8d419f
 1 file changed, 6 insertions(+), 1 deletion(-)
8d419f
8d419f
diff --git a/hwdb.d/60-autosuspend.hwdb b/hwdb.d/60-autosuspend.hwdb
8d419f
index 323611d000..07f7fa9344 100644
8d419f
--- a/hwdb.d/60-autosuspend.hwdb
8d419f
+++ b/hwdb.d/60-autosuspend.hwdb
8d419f
@@ -75,13 +75,18 @@ usb:v0627p0001:*QEMU USB Tablet*
8d419f
  ID_AUTOSUSPEND=1
8d419f
 
8d419f
 #########################################
8d419f
-# Sierra Wireless
8d419f
+# WWAN
8d419f
 #########################################
8d419f
 
8d419f
 # Sierra Wireless EM7345 4G LTE modem
8d419f
 usb:v1199pA001*
8d419f
  ID_AUTOSUSPEND=1
8d419f
 
8d419f
+# Fibocom LG850-GL
8d419f
+usb:v2CB7p0007*
8d419f
+ ID_AUTOSUSPEND=1
8d419f
+ ID_AUTOSUSPEND_DELAY_MS=7000
8d419f
+
8d419f
 #########################################
8d419f
 # Wacom
8d419f
 #########################################