Skip to content
Snippets Groups Projects
Commit 89466b58 authored by Dan Williams's avatar Dan Williams
Browse files

port-probe: ensure port is open for all plugin AT probes


If multiple plugins are selected for probing a modem with AT probes,
earlier plugins may only request some probes but not all.  When
those probes complete successfully, subsequent plugins won't re-do
the probes that were already completed, but jump to ones that
haven't yet been done.

For example, plugin A may request only AT probes but plugin B
may request AT, AT_PRODUCT, and AT_VENDOR. Plugin B will start
with AT_PRODUCT probes because plugin A already completed the AT
probe.

The code in probe_step() only opened the serial port for the
AT probe, I guess assuming that all AT-type probes would be
done in sequence. But in the above scenario they are not.

Instead, make sure the port is opened for all AT style probes
that have not yet been executed.

Fixes: 7937a89a port-probe: rework and consolidate port probe flow for AT/QCDM/QMI/MBIM

Signed-off-by: default avatarDan Williams <dan@ioncontrol.co>
parent e6a7be2e
No related branches found
No related tags found
1 merge request!1305port-probe: ensure port is open for all plugin AT probes
Pipeline #1380652 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment