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