use g_timeout_add instead of usleep
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 1 patch 0 repliesNew
Patches in v1 No applies recorded yet
The patch the cover letter announces is not in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] use g_timeout_add instead of usleep
Here is another version of the patch using g_timeout_add. Compare to what is done in at_util_sim_state_query, I choose to wait only 20ms between attempts (2s in at_util_sim_state_query). On my modem, I manage to recover from temporary error after 7 to 10 tries (less than 2 seconds).
Let me know if you prefer a bigger wait before retry.
Christophe Ronco (1):
qmimodem: query_passwd_state can be retried
drivers/qmimodem/sim.c | 95 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 81 insertions(+), 14 deletions(-)
Signature · 1 line
2.11.0