34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
|
From d9a65f76763df1828644d0210fe747e67ba32fb3 Mon Sep 17 00:00:00 2001
|
||
|
From: Thomas Thorne <Thomas.Thorne@Net2Edge.com>
|
||
|
Date: Tue, 20 Sep 2022 20:34:57 -0400
|
||
|
Subject: usb: serial: option: add 'reset_resume' callback for WWAN devices
|
||
|
|
||
|
This avoids the issue where the PPP modem does not reset correctly on resume,
|
||
|
causing issues with incoming calls on suspend.
|
||
|
|
||
|
Noted here: https://github.com/the-modem-distro/pinephone_modem_sdk/issues/97
|
||
|
|
||
|
This is part of a larger patch:
|
||
|
https://github.com/Quectel-Community/meta-quectel-community/commit/24adef2128f79b4d31490634438a917b3df462e2#diff-45dc5960ca2f1ef57139fe751587b3b043de9cca5864e2801210c00e75bd0780
|
||
|
|
||
|
However the rest of the patch is not needed/already upstreamed.
|
||
|
---
|
||
|
drivers/usb/serial/option.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
|
||
|
index 72390dbf07..71a2d6d61b 100644
|
||
|
--- a/drivers/usb/serial/option.c
|
||
|
+++ b/drivers/usb/serial/option.c
|
||
|
@@ -2314,6 +2314,7 @@ static struct usb_serial_driver option_1port_device = {
|
||
|
#ifdef CONFIG_PM
|
||
|
.suspend = usb_wwan_suspend,
|
||
|
.resume = usb_wwan_resume,
|
||
|
+ .reset_resume = usb_wwan_resume,
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
--
|
||
|
2.43.0
|
||
|
|