All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -v3 1/5] modem: only unref pending if it is a powered pending
@ 2010-12-03 18:52 Gustavo F. Padovan
  2010-12-03 18:52 ` [PATCH -v3 2/5] modem: add ofono_modem_reset() to modem.h Gustavo F. Padovan
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Gustavo F. Padovan @ 2010-12-03 18:52 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

---
 src/modem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modem.c b/src/modem.c
index 52e647b..d6ab316 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -804,7 +804,7 @@ void ofono_modem_set_powered(struct ofono_modem *modem, ofono_bool_t powered)
 		modem->timeout = 0;
 	}
 
-	if (modem->pending != NULL) {
+	if (modem->powered_pending != powered && modem->pending != NULL) {
 		DBusMessage *reply;
 
 		if (powered == modem->powered_pending)
-- 
1.7.3.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-12-18  1:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-03 18:52 [PATCH -v3 1/5] modem: only unref pending if it is a powered pending Gustavo F. Padovan
2010-12-03 18:52 ` [PATCH -v3 2/5] modem: add ofono_modem_reset() to modem.h Gustavo F. Padovan
2010-12-03 18:52   ` [PATCH -v3 3/5] Add ofono_modem_reset() Gustavo F. Padovan
2010-12-03 18:52     ` [PATCH -v3 4/5] phonesim: Add modem reset trigger Gustavo F. Padovan
2010-12-03 18:52       ` [PATCH -v3 5/5] modem: add support to restore state when resetting the modem Gustavo F. Padovan
2010-12-07  3:48         ` Denis Kenzior
2010-12-07 18:31           ` [PATCH] " Gustavo F. Padovan
2010-12-18  1:13             ` Denis Kenzior
2010-12-07  3:00       ` [PATCH -v3 4/5] phonesim: Add modem reset trigger Denis Kenzior
2010-12-07  3:00     ` [PATCH -v3 3/5] Add ofono_modem_reset() Denis Kenzior
2010-12-07  2:58   ` [PATCH -v3 2/5] modem: add ofono_modem_reset() to modem.h Denis Kenzior
2010-12-03 21:37 ` [PATCH -v3 1/5] modem: only unref pending if it is a powered pending Gustavo F. Padovan
2010-12-03 21:40 ` [PATCH] " Gustavo F. Padovan
2010-12-07  2:57   ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.