suspend: add suspend/resume support with powerd on ChromeOS
ModemManager handles suspend and resume signals sent from powerd Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/547
This commit is contained in:

committed by
Aleksander Morgado

parent
ac06052b97
commit
3da84c2079
@@ -358,7 +358,7 @@ mm_broadband_bearer_altair_lte_class_init (MMBroadbandBearerAltairLteClass *klas
|
||||
|
||||
base_bearer_class->load_connection_status = NULL;
|
||||
base_bearer_class->load_connection_status_finish = NULL;
|
||||
#if defined WITH_SYSTEMD_SUSPEND_RESUME
|
||||
#if defined WITH_SUSPEND_RESUME
|
||||
base_bearer_class->reload_connection_status = NULL;
|
||||
base_bearer_class->reload_connection_status_finish = NULL;
|
||||
#endif
|
||||
|
@@ -680,7 +680,7 @@ mm_broadband_bearer_cinterion_class_init (MMBroadbandBearerCinterionClass *klass
|
||||
|
||||
base_bearer_class->load_connection_status = load_connection_status;
|
||||
base_bearer_class->load_connection_status_finish = load_connection_status_finish;
|
||||
#if defined WITH_SYSTEMD_SUSPEND_RESUME
|
||||
#if defined WITH_SUSPEND_RESUME
|
||||
base_bearer_class->reload_connection_status = load_connection_status;
|
||||
base_bearer_class->reload_connection_status_finish = load_connection_status_finish;
|
||||
#endif
|
||||
|
@@ -867,7 +867,7 @@ mm_broadband_bearer_huawei_class_init (MMBroadbandBearerHuaweiClass *klass)
|
||||
base_bearer_class->report_connection_status = report_connection_status;
|
||||
base_bearer_class->load_connection_status = NULL;
|
||||
base_bearer_class->load_connection_status_finish = NULL;
|
||||
#if defined WITH_SYSTEMD_SUSPEND_RESUME
|
||||
#if defined WITH_SUSPEND_RESUME
|
||||
base_bearer_class->reload_connection_status = NULL;
|
||||
base_bearer_class->reload_connection_status_finish = NULL;
|
||||
#endif
|
||||
|
@@ -859,7 +859,7 @@ mm_broadband_bearer_icera_class_init (MMBroadbandBearerIceraClass *klass)
|
||||
base_bearer_class->report_connection_status = report_connection_status;
|
||||
base_bearer_class->load_connection_status = NULL;
|
||||
base_bearer_class->load_connection_status_finish = NULL;
|
||||
#if defined WITH_SYSTEMD_SUSPEND_RESUME
|
||||
#if defined WITH_SUSPEND_RESUME
|
||||
base_bearer_class->reload_connection_status = NULL;
|
||||
base_bearer_class->reload_connection_status_finish = NULL;
|
||||
#endif
|
||||
|
@@ -259,7 +259,7 @@ mm_bearer_iridium_class_init (MMBearerIridiumClass *klass)
|
||||
base_bearer_class->connect_finish = connect_finish;
|
||||
base_bearer_class->load_connection_status = NULL;
|
||||
base_bearer_class->load_connection_status_finish = NULL;
|
||||
#if defined WITH_SYSTEMD_SUSPEND_RESUME
|
||||
#if defined WITH_SUSPEND_RESUME
|
||||
base_bearer_class->reload_connection_status = NULL;
|
||||
base_bearer_class->reload_connection_status_finish = NULL;
|
||||
#endif
|
||||
|
@@ -897,7 +897,7 @@ mm_broadband_bearer_mbm_class_init (MMBroadbandBearerMbmClass *klass)
|
||||
base_bearer_class->report_connection_status = report_connection_status;
|
||||
base_bearer_class->load_connection_status = NULL;
|
||||
base_bearer_class->load_connection_status_finish = NULL;
|
||||
#if defined WITH_SYSTEMD_SUSPEND_RESUME
|
||||
#if defined WITH_SUSPEND_RESUME
|
||||
base_bearer_class->reload_connection_status = NULL;
|
||||
base_bearer_class->reload_connection_status_finish = NULL;
|
||||
#endif
|
||||
|
@@ -568,7 +568,7 @@ mm_broadband_bearer_novatel_lte_class_init (MMBroadbandBearerNovatelLteClass *kl
|
||||
|
||||
base_bearer_class->load_connection_status = load_connection_status;
|
||||
base_bearer_class->load_connection_status_finish = load_connection_status_finish;
|
||||
#if defined WITH_SYSTEMD_SUSPEND_RESUME
|
||||
#if defined WITH_SUSPEND_RESUME
|
||||
base_bearer_class->reload_connection_status = load_connection_status;
|
||||
base_bearer_class->reload_connection_status_finish = load_connection_status_finish;
|
||||
#endif
|
||||
|
@@ -804,7 +804,7 @@ mm_broadband_bearer_hso_class_init (MMBroadbandBearerHsoClass *klass)
|
||||
base_bearer_class->report_connection_status = report_connection_status;
|
||||
base_bearer_class->load_connection_status = NULL;
|
||||
base_bearer_class->load_connection_status_finish = NULL;
|
||||
#if defined WITH_SYSTEMD_SUSPEND_RESUME
|
||||
#if defined WITH_SUSPEND_RESUME
|
||||
base_bearer_class->reload_connection_status = NULL;
|
||||
base_bearer_class->reload_connection_status_finish = NULL;
|
||||
#endif
|
||||
|
@@ -663,7 +663,7 @@ mm_broadband_bearer_sierra_class_init (MMBroadbandBearerSierraClass *klass)
|
||||
|
||||
base_bearer_class->load_connection_status = load_connection_status;
|
||||
base_bearer_class->load_connection_status_finish = load_connection_status_finish;
|
||||
#if defined WITH_SYSTEMD_SUSPEND_RESUME
|
||||
#if defined WITH_SUSPEND_RESUME
|
||||
base_bearer_class->reload_connection_status = load_connection_status;
|
||||
base_bearer_class->reload_connection_status_finish = load_connection_status_finish;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user