From 1b280dda3734d42b02474a0628314afc58c2065f Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Thu, 17 Jun 2021 16:59:55 -0700
Subject: [PATCH] librem5-pm.udev: disable PM for broadmobi modem

Workaround for https://source.puri.sm/Librem5/linux-next/-/issues/303
---
 debian/librem5-base-defaults.librem5-pm.udev | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/librem5-base-defaults.librem5-pm.udev b/debian/librem5-base-defaults.librem5-pm.udev
index dc005bb..6abdb10 100644
--- a/debian/librem5-base-defaults.librem5-pm.udev
+++ b/debian/librem5-base-defaults.librem5-pm.udev
@@ -9,7 +9,7 @@ DEVPATH=="/devices/platform/soc@0/38100000.usb", TEST=="power/control", ATTR{pow
 ### Enable power management for internal USB devices:
 
 # Broadmobi BM818
-SUBSYSTEM=="usb", ATTRS{idVendor}=="2020", ATTR{idProduct}=="2060", TEST=="power/control", ATTR{power/control}="auto"
+SUBSYSTEM=="usb", ATTRS{idVendor}=="2020", ATTR{idProduct}=="2060", TEST=="power/control", ATTR{power/control}="on"
 SUBSYSTEM=="usb", ATTRS{idVendor}=="2020", ATTR{idProduct}=="2060", TEST=="power/autosuspend_delay_ms", ATTR{power/autosuspend_delay_ms}="2000"
 
 # Cinterion PLS8
-- 
2.32.0

