All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: patch to fix BMC #13679 Huawei EM770: ofonod crash when disable/enable 3G technology
Date: Fri, 04 Mar 2011 09:19:54 -0600	[thread overview]
Message-ID: <4D71031A.20504@gmail.com> (raw)
In-Reply-To: <FC2FB65B4D919844ADE4BE3C2BB739AD36CFDF94@shsmsx501.ccr.corp.intel.com>

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

Hi Martin,

On 03/04/2011 12:53 AM, Xu, Martin wrote:
> Hi Denis:
> 
>>>  	struct ofono_gprs *gprs;
>>>  	struct ofono_gprs_context *gc;
>>>  	gboolean voice;
>>> +	gboolean online;
>>
>> I don't think you really need this one, you can use the presence of gprs
>> atom instead.
> Gprs atom is not reliable here. Because gprs will be flushed when entering offline mode

Both gprs and gprs-contexts will be flushed.  So you should be setting
them to NULL when going offline.  How is this not reliable?

>>
>> I suspect all you need to do is unref data->modem, set data->gc and
>> data->gprs to NULL in the offline callback prior to calling back into
>> the core.
> Logically, call back only needs to set offline states
> It is Huawei_disconnect's duty to decide the operation. 
> In theory, Huawei_disconnect may be called at any situation when io error happens.
> (I observed two place, one is at ppp_disconnect the other is at offline mode CFUN=5.)
> So the function must take action according to the states. 
> I will resent the updated patch

Sure, but what you're trying to prevent is keeping pointers around to
atoms which have gone away.  One easy way to do that would be to simply
set them to NULL when going offline.

You can also install atom watches, but that might not be worth the effort.

Regards,
-Denis

  reply	other threads:[~2011-03-04 15:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01 15:07 [PATCH] PPP: Optimize write buffer management Patrick Porlan
2011-03-02  3:47 ` Denis Kenzior
2011-03-02  8:42   ` Patrick Porlan
2011-03-02  9:59     ` patch to fix BMC #13679 Huawei EM770: ofonod crash when disable/enable 3G technology Xu, Martin
2011-03-03  5:22       ` Denis Kenzior
2011-03-04  6:53         ` Xu, Martin
2011-03-04 15:19           ` Denis Kenzior [this message]
2011-03-02 15:28     ` [PATCH] PPP: Optimize write buffer management Denis Kenzior
2011-03-08 16:08       ` Patrick Porlan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D71031A.20504@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.