aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-modem.c
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-05-07 22:58:17 -0500
committerDan Williams <dan@ioncontrol.co>2025-05-07 22:59:25 -0500
commit6350b0a85f76e830b3749933c4ee7e926c8686ad (patch)
tree7e9174c108ed2e9c739fa54e705fb0f9d8f30edd /src/mm-base-modem.c
parent6b25476dbbd96d9a072fc8b1e2c39991eda83a3f (diff)
base-modem: clarify port cleanup/close behavior for serial ports
Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'src/mm-base-modem.c')
-rw-r--r--src/mm-base-modem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-base-modem.c b/src/mm-base-modem.c
index a7fdfa0a..16f3e07b 100644
--- a/src/mm-base-modem.c
+++ b/src/mm-base-modem.c
@@ -2303,6 +2303,11 @@ cleanup_modem_port (MMBaseModem *self,
if (ctx)
teardown_context_ref (ctx);
+ /* No need to close serial ports here as they do not require a specific
+ * shutdown procedure with message exchanges and callbacks. They will be
+ * closed when the modem is invalidated or disposed.
+ */
+
#if defined WITH_MBIM
/* We need to close the MBIM port cleanly when disposing the modem object */
if (MM_IS_PORT_MBIM (port)) {