summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2013-07-14 17:24:39 -0700
committerDan Williams <dcbw@redhat.com>2013-07-14 21:03:37 -0500
commit48d35ee61049e65b83bf3484a45657a83709b2a1 (patch)
tree0c55ba42dbf2b840578ef51d2cca6660a16858c0
parent5b3392e84b910c88af64db54986a74122b40f1f4 (diff)
altair-lte: set serial port send delay to 0
With a non-zero send delay, the communication over the ttyACM port of the modem is not very stable when USB auto-suspend is enabled for the modem. The send delay is not necessary and thus removed by this patch. Ori Inbar <ori.inbar@altair-semi.com> reported the issue and suggested this fix.
-rw-r--r--plugins/altair/mm-broadband-modem-altair-lte.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/altair/mm-broadband-modem-altair-lte.c b/plugins/altair/mm-broadband-modem-altair-lte.c
index e5241038..3c5ef6ca 100644
--- a/plugins/altair/mm-broadband-modem-altair-lte.c
+++ b/plugins/altair/mm-broadband-modem-altair-lte.c
@@ -913,8 +913,11 @@ setup_ports (MMBroadbandModem *self)
MM_BROADBAND_MODEM_CLASS (mm_broadband_modem_altair_lte_parent_class)->setup_ports (self);
primary = mm_base_modem_peek_port_primary (MM_BASE_MODEM (self));
+ if (!primary)
+ return;
- g_object_set (mm_base_modem_peek_port_primary (MM_BASE_MODEM (self)),
+ g_object_set (primary,
+ MM_SERIAL_PORT_SEND_DELAY, (guint64) 0,
MM_AT_SERIAL_PORT_SEND_LF, TRUE,
MM_AT_SERIAL_PORT_INIT_SEQUENCE, primary_init_sequence,
NULL);