UPSTREAM: libqmi-glib,device: schedule indications with G_PRIORITY_DEFAULT

The response processing operations are scheduled by
g_simple_async_result_complete_in_idle(), which creates an idle source
with G_PRIORITY_DEFAULT priority.

We should schedule the indications with the same priority (instead of
the default G_PRIORITY_DEFAULT_IDLE) so that the processing of
indications and responses are ordered corectly.

See https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/951

(cherry picked from commit 8b8ee0acfe4f74714ab21c31edc590f4d2c9aa6f)

BUG=b:264259856
TEST=Manual testing in Trogdor DUT

Change-Id: Ia6fa829644eb18fc4356ba55dd7e1ac6bc9746e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libqmi/+/4152010
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Aleksander Morgado <aleksandermj@google.com>
Commit-Queue: Pavan Holla <pholla@google.com>
diff --git a/src/libqmi-glib/qmi-device.c b/src/libqmi-glib/qmi-device.c
index 69a9b44..01e7ba1 100644
--- a/src/libqmi-glib/qmi-device.c
+++ b/src/libqmi-glib/qmi-device.c
@@ -1659,6 +1659,7 @@
     ctx->message = qmi_message_ref (message);
 
     source = g_idle_source_new ();
+    g_source_set_priority (source, G_PRIORITY_DEFAULT);
     g_source_set_callback (source, (GSourceFunc)process_indication_idle, ctx, NULL);
     g_source_attach (source, g_main_context_get_thread_default ());
     g_source_unref (source);